Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8243750imu; Thu, 15 Nov 2018 08:37:46 -0800 (PST) X-Google-Smtp-Source: AJdET5cHbViv6UnmQTwWYfVrvCkeUOQiU7R3DLiA51EQzQqWx75edNLLxvZYDJY2Qqleh3GxzEP4 X-Received: by 2002:a17:902:76cc:: with SMTP id j12-v6mr7049717plt.339.1542299866863; Thu, 15 Nov 2018 08:37:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542299866; cv=none; d=google.com; s=arc-20160816; b=KB7WWr8rOtcq7t8f+DP+wdE5q1lUUiBMOMTxNz89Tl3ZhvbNfKqRp0UVnymdTSsAjM BIxvF1Q5Y1zCj3zyHZ5ATayFP+hT7KDM1bRVydI9VzQh6jRVTnj8OqnPx5Wb/ORkYNou GVFALeQTX+jSmLolvPmLwhyByui5dtTPtMVBbfhuYx/HwZbZpi628ivYusU4CUh1xcFX vN0Iu3coirKZDmEazinqFVpbCxq19uvRye5iU03Z4fvKW+TAtMwi0oh/3w0yOIP+iqNM +5Impv5D1nwE6wyjT05o3Laotg9AlGUgjy287hHUMQgLsFnC5+C21KIdRQApNwh6ba4M gDHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:subject:cc:to:from:date:message-id:dkim-signature; bh=lrNKmcm6T6ynZmAfTCZMzh2G66aGSvahImaCoMcOLYY=; b=ZOqB8DcaL3VtwRmAg+tPxoMiRpf6ZKCcjCj02fRlGateh+RZpF/HrMnMuddcscHCV1 qRXXi/tHfVoBTwC2OkyFL5/dSD+XKnzTPdMP7wL5zTbsW1YWempAzNDClwRBlxTnqjkZ c4SkUHa+0XG5GGG/otidJXuRQ20R7QriKRGGxAj0aYKIeJy9pFSjg6mYUkuQbxbiKlob bqxxbTQ6mNq20Tv9Q2oVJIsHzoJW79gEwSZOh4bVZTtrEkvK9OSaMK6j5EmYE7Vs/F3H EC3jUiS49/RoHp/Wzqp+r/koi7lAXogmNzIZxPdMzg7TgPM5mEfe0AO51xnzfd3AgCcR 1raQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fR2UDjSP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si5678553plr.196.2018.11.15.08.37.03; Thu, 15 Nov 2018 08:37:46 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fR2UDjSP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388501AbeKPCml (ORCPT + 99 others); Thu, 15 Nov 2018 21:42:41 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41532 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbeKPCml (ORCPT ); Thu, 15 Nov 2018 21:42:41 -0500 Received: by mail-pf1-f195.google.com with SMTP id e22-v6so9938603pfn.8; Thu, 15 Nov 2018 08:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:cc:subject:mime-version:content-disposition :user-agent; bh=lrNKmcm6T6ynZmAfTCZMzh2G66aGSvahImaCoMcOLYY=; b=fR2UDjSPWocTLs0ySwE2ioCBqqB5pdms92szFKkShGfoK8YoEIbgwF9TAFHUwOFgJ7 HJMHmIh03NvQB6RcSZzmPeQiC7MD9eGupU1l4JY46CVyOvR6ZFtt1LtQl3q6P3/TNouX hWA/sDY9SZ6rsT0AWq6KyDwcUGqsDBxXn+aVybu4PXQfk4OXlTVYvp00tktulQHvctUq DUCLUhByA0Ujdmh1PZVAfI+8Ilk/ke/Bb+qqwhfTaX499r9rcOPCOnWFnr7QX+a1v2zu EUoyQ4dlmvCohb1ShWK6RwivxmiYL4IqQmLedX9jxofXp7+uxOekdUrQC8hc9TGRl3j0 MExQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:mime-version :content-disposition:user-agent; bh=lrNKmcm6T6ynZmAfTCZMzh2G66aGSvahImaCoMcOLYY=; b=mCLed8ZC0dKbmtz+Sd6WAg2FrONddCMTI2ivvW8TH5lcwZ6QxS4NBLZq4bMpeNVBJd rPB0PEL3rissUVmvdOtz96+3z5nkKT+TnEUUcrUOb9hfT/7NIRESsG675e0YxMGe+wr9 fr1OaLHT+ZdrjacD7u44kbX0DLg2pcouUITaxDTkyzmMSaTYHK05KM4QMlzLQsRbmYRc oLqJRsYkuGVhNxPI8jWNnphxUF6akzD62enJKixrO6MFIy4deJD3RIvRVY9NmoldqYop ddLkytnbUI3qYfddAu4ZW6lu0+rx+TKwv9Rh5fNmVzOaVgPIZsIVDbI6+qieNxOtMJjK 25wA== X-Gm-Message-State: AGRZ1gKT/SyNhyQ7NmtiDqkRUIPm0UFThbB3gjsTEs2M7X0o2QFT2aqW ccVyyamNPJLOXD+b9UZ0Ss4= X-Received: by 2002:a62:f5da:: with SMTP id b87mr7240451pfm.253.1542299649578; Thu, 15 Nov 2018 08:34:09 -0800 (PST) Received: from sabyasachi ([45.116.191.235]) by smtp.gmail.com with ESMTPSA id s2-v6sm58186068pfk.133.2018.11.15.08.34.07 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Nov 2018 08:34:08 -0800 (PST) Message-ID: <5beda000.1c69fb81.e6599.d3d8@mx.google.com> X-Google-Original-Message-ID: <20181115163404.GA3025@sabyasachi.linux@gmail.com> Date: Thu, 15 Nov 2018 22:04:04 +0530 From: Sabyasachi Gupta To: kartilak@cisco.com, sebaddel@cisco.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: jrdr.linux@gmail.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, brajeswar.linux@gmail.com Subject: [PATCH] drivers/scsi/snic/snic_trc.c: Use vzalloc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replaced vmalloc + memset with vzalloc Signed-off-by: Sabyasachi Gupta --- drivers/scsi/snic/snic_trc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/snic/snic_trc.c b/drivers/scsi/snic/snic_trc.c index fc60c93..458eaba 100644 --- a/drivers/scsi/snic/snic_trc.c +++ b/drivers/scsi/snic/snic_trc.c @@ -126,7 +126,7 @@ snic_trc_init(void) int tbuf_sz = 0, ret; tbuf_sz = (snic_trace_max_pages * PAGE_SIZE); - tbuf = vmalloc(tbuf_sz); + tbuf = vzalloc(tbuf_sz); if (!tbuf) { SNIC_ERR("Failed to Allocate Trace Buffer Size. %d\n", tbuf_sz); SNIC_ERR("Trace Facility not enabled.\n"); @@ -135,7 +135,6 @@ snic_trc_init(void) return ret; } - memset(tbuf, 0, tbuf_sz); trc->buf = (struct snic_trc_data *) tbuf; spin_lock_init(&trc->lock); -- 2.7.4