Message ID | 20141117151426.10739.86414.stgit@buzz (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-crypto-owner@kernel.org> X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5BF599F1E1 for <patchwork-linux-crypto@patchwork.kernel.org>; Mon, 17 Nov 2014 15:14:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E461C20115 for <patchwork-linux-crypto@patchwork.kernel.org>; Mon, 17 Nov 2014 15:14:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B12442010F for <patchwork-linux-crypto@patchwork.kernel.org>; Mon, 17 Nov 2014 15:14:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753335AbaKQPOc (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Mon, 17 Nov 2014 10:14:32 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:17554 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750964AbaKQPO2 (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Mon, 17 Nov 2014 10:14:28 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NF600JDRVSQTG20@mailout2.w1.samsung.com>; Mon, 17 Nov 2014 15:17:14 +0000 (GMT) X-AuditID: cbfec7f5-b7f956d000005ed7-99-546a10d20d98 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id A9.68.24279.2D01A645; Mon, 17 Nov 2014 15:14:26 +0000 (GMT) Received: from localhost ([106.109.129.38]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NF6005DUVO2VR80@eusync1.samsung.com>; Mon, 17 Nov 2014 15:14:26 +0000 (GMT) Subject: [PATCH 2/2] kernel/kexec: free crypto_shash using crypto_free_shash From: Konstantin Khlebnikov <k.khlebnikov@samsung.com> To: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Eric Biederman <ebiederm@xmission.com> Cc: Michal Marek <mmarek@suse.cz>, Herbert Xu <herbert@gondor.apana.org.au>, Gilles Muller <Gilles.Muller@lip6.fr>, Nicolas Palix <nicolas.palix@imag.fr>, Julia Lawall <Julia.Lawall@lip6.fr>, linux-crypto@vger.kernel.org, "David S. Miller" <davem@davemloft.net> Date: Mon, 17 Nov 2014 18:14:26 +0400 Message-id: <20141117151426.10739.86414.stgit@buzz> In-reply-to: <20141117151420.10739.16342.stgit@buzz> References: <20141117151420.10739.16342.stgit@buzz> User-Agent: StGit/0.17.1-dirty MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsVy+t/xy7qXBLJCDKa8NrCYc76FxeL/thZ2 i9k/LzFZdL+SsVj24DSjxY+dvawWu09/ZbK4f+8nk8XlXXPYLFr2XWCyOPZyOZMDt8eWlTeZ PLYdUPU4dqyV2WPvliyPzUvqPfq2rGL0OLPgCLvH501yHlMOtbMEcEZx2aSk5mSWpRbp2yVw ZfR+vs5UMI+louPaItYGxv3MXYycHBICJhJzv89igbDFJC7cW8/WxcjFISSwlFFi76x7TBBO I5PEguMfwaqEBXwkrp5/yApiswmYSWzbd5sRxBYRSJVYsOgIM0gDs0A3k8SqVy+Aujk4WARU Jb5vzAQxeQWMJT7/swIp5wRa3D1rK9gYIaDwnq4tYLaogJzEysstYDavgKDEj8n3WEBamQXU JaZMyQUJMwvIS2xe85Z5AqPALCRVsxCqZiGpWsDIvIpRNLU0uaA4KT3XSK84Mbe4NC9dLzk/ dxMjJFK+7mBceszqEKMAB6MSD++BoswQIdbEsuLK3EOMEhzMSiK8MReBQrwpiZVVqUX58UWl OanFhxiZODilGhizq0NrGFvUH35nd/gqx/1N/JC9y0tBJ516Pk3/c/Ud0tyLc2LZN/gfzX8T uXiOu07Jilgz23M3G49E/Qv/dlZRwGf9xzk3Vm1xCog8nST51jrW9Nnll9vebs/bfdDhe52i TrBRr9a/RqPlRn+2z49+ndFvEHn0eofCjmMa3SVsWkGSn60ePlBiKc5INNRiLipOBABG9c6g cgIAAA== Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/kernel/kexec.c b/kernel/kexec.c index 2abf9f6..5a62311 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -2286,7 +2286,7 @@ out_free_sha_regions: out_free_desc: kfree(desc); out_free_tfm: - kfree(tfm); + crypto_free_shash(tfm); out: return ret; }
These objects have special freeing functions which cares about proper destruction and reference counting. Signed-off-by: Konstantin Khlebnikov <k.khlebnikov@samsung.com> --- kernel/kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html