From patchwork Mon Feb 19 14:51:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 128814 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3590875ljc; Mon, 19 Feb 2018 06:52:02 -0800 (PST) X-Google-Smtp-Source: AH8x224PKgC0zTRxFKDp0/cefvCBbbXz5pYAGskSphvnLD20H564Ij63JXOmZpRQLMdyPY30bxhU X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr14473037pla.149.1519051922503; Mon, 19 Feb 2018 06:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519051922; cv=none; d=google.com; s=arc-20160816; b=05F8jj51lN2mC4B2daCZ6UvAuQva3zMz6dCqAkCCdp/BpAzRXWPZz9o8pL6sl+xjUs cWCnmzOmtbZrGoyMROX03ar0s+xMuYUQb8PU5klfFvY5FHALktt6jc4beFRotDIxBZzK 08VT5PlEcrsf+2pQ8SwjNGw9gw+QgBKZFRoPWNo2X3TPLWE1ydXoCdcNnTySx65uddOC zGPvkhJo0myAh+xOL4Nmi34y+gm/TPfzCuNxxPhBMwEJbr6cvNfmSHZCa0lD4/VuETwO VEq8oPpZTp4/ZBIn+lbPn/pea7iDe4BMZ+ZSh2/LwT9mEGnsEd0JHCd4GCYnye3ogU2/ Mj+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Tq0CPIG/+8bpDR8MEc1X89UAHuHK6WWZc5iJNinxWjE=; b=zpxW3/HLQY56buWeJ60OPo3J8I+JSjuiNTACV/kGkQz/ZQ5JwMCMpdCjHBZOFawUKC EUGMm1WLSOn1Bf3RnZYeJn/XNEFCDiG1hLo/rbeaMugpwsutelUp+WRydm2ch+PPDF2J IRR/cDYZBOSv9w9yPtiLGXM+aJHBPOFuQ9H4/RMKqucj2F1l/mWgih2U/w0K7TcR4pv1 4MTLP7P3Lkbtq9SiddiH7lVIF5qoZ2Y7bXrCRp9a1oSRL3pEBD7ZeWn146kt2x/J783/ GaZoy+nnEuDl0YVTNo12UfBZq4hPpf9K/Jz6aQMFsf1yhtDAH2YdXdVKYEvkOkjMEtjd MMQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z60-v6si6138175plh.306.2018.02.19.06.52.02; Mon, 19 Feb 2018 06:52:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753189AbeBSOv7 (ORCPT + 28 others); Mon, 19 Feb 2018 09:51:59 -0500 Received: from foss.arm.com ([217.140.101.70]:60222 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752492AbeBSOv5 (ORCPT ); Mon, 19 Feb 2018 09:51:57 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD0F91610; Mon, 19 Feb 2018 06:51:56 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.135]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9994F3F318; Mon, 19 Feb 2018 06:51:54 -0800 (PST) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" , Rob Herring , Mark Rutland Cc: Ofir Drang , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] crypto: ccree: replace memset+kfree with kzfree Date: Mon, 19 Feb 2018 14:51:24 +0000 Message-Id: <1519051887-4668-5-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519051887-4668-1-git-send-email-gilad@benyossef.com> References: <1519051887-4668-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace memset to 0 followed by kfree with kzfree for simplicity. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/cc_request_mgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/crypto/ccree/cc_request_mgr.c b/drivers/crypto/ccree/cc_request_mgr.c index 2fa0663..83a8aaae 100644 --- a/drivers/crypto/ccree/cc_request_mgr.c +++ b/drivers/crypto/ccree/cc_request_mgr.c @@ -81,8 +81,7 @@ void cc_req_mgr_fini(struct cc_drvdata *drvdata) /* Kill tasklet */ tasklet_kill(&req_mgr_h->comptask); #endif - memset(req_mgr_h, 0, sizeof(struct cc_req_mgr_handle)); - kfree(req_mgr_h); + kzfree(req_mgr_h); drvdata->request_mgr_handle = NULL; }