Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3414022ybi; Tue, 18 Jun 2019 00:00:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWNcyki+S8grDxUoHH3QmZLrdDEtnO17ZJQ2hFi9axWejl+dn8QLc5TWk17OBOonH3Xf7b X-Received: by 2002:a62:3103:: with SMTP id x3mr36828614pfx.107.1560841217526; Tue, 18 Jun 2019 00:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560841217; cv=none; d=google.com; s=arc-20160816; b=jknW1/eWYYxfWqxhTSDA8zIH/xw3EigjzBQJNbcpHrVJc/9sskyifoO8aTfj+HIYyq RqrRwIyJtmkX+tF3DjQmaV5kU7JkWsn7wipwcFljGtLCIpAl7yb1MesglJNrUylxGWeO mltHgIQrC2yI7+AzD2AruAGRWixT0XnpQw4PyvQ244dbh2XyrUKgw5k66rUZAIPO0WXi YzuHxjPq4Rix139ulzWnCDlY1BLFfsgD9A5dNbeLZGQYm8THmaUQsPD5gTLZNVVu56X/ x9N1c+tdomFH3fPyK81jcSFP/4KNFGP8BuczoY7lG+lfdNo/IKljN6AG8kCSo/S51//i jDRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zrRPfowAR7Udapo/xmVRk8HIQ8hyLBTADWeD9r1vb0o=; b=eIKW9P20m/VaaTQZJxxyuzyMFFigRx3JpOCiyge2N63fwsRiwVDkQYNFKexINsnVwu bNcS0+f9f63EdsTVJ9eN/D8dnwaWQTJ7guqW1Q+Wty+/QmkVnsIt0CqWER9eu/1q0HZs jq/6tVT5CCfgIkpTYzRvX8nN/Q9JWTwpHDd3xnKvf0VmuaecTjEd1bxW1adwmPupTm35 zgyhNOO2E6QIw3otzWEQA+6g/Px50hMuN3TzkYl5sL/Hux1lAnCTWFA1g1LE037Ia5E5 VM3LzKBWZzJ/JKWxl2U5mMUdfi4w6KOZ5EPB7+2EXstyL8C3ICnjdNcOaeVhvxJotHjq yUXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nW10Hu++; 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 f21si10092406pgh.345.2019.06.18.00.00.02; Tue, 18 Jun 2019 00:00:17 -0700 (PDT) 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=@kernel.org header.s=default header.b=nW10Hu++; 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 S1728889AbfFRG7e (ORCPT + 99 others); Tue, 18 Jun 2019 02:59:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:59836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfFRG7d (ORCPT ); Tue, 18 Jun 2019 02:59:33 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C9FE20673; Tue, 18 Jun 2019 06:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560841172; bh=5ecne3rCtVqpWXP+h0ZrAWJGGu531cJx7E9w2U9xOz0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nW10Hu++sUQrj/S3YQTKUNgZJgfWeNCSb95YUyAw0/gQlWPavg1CfR91PTbv60Cgy HaE+ZOhu3Vdc25N0ZC7bJvT20lGMLHaT0eu850YiT8QH35rZ9nlejaP2LGHkgtFCY2 gJl1cK8K4kK5wU7MDBxhKaP6wHa8fVWD4MoeEFCI= Date: Tue, 18 Jun 2019 08:59:30 +0200 From: Greg Kroah-Hartman To: Hariprasad Kelam Cc: Jeeeun Evans , Larry Finger , Quytelda Kahja , Omer Efrat , Arnd Bergmann , Puranjay Mohan , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8723bs: os_dep: Make use rtw_zmalloc Message-ID: <20190618065930.GB15358@kroah.com> References: <20190616051619.GA15036@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190616051619.GA15036@hari-Inspiron-1545> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 16, 2019 at 10:46:19AM +0530, Hariprasad Kelam wrote: > rtw_malloc with memset can be replaced with rtw_zmalloc. > > Signed-off-by: Hariprasad Kelam > --- > drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > index 9bc6856..aa7cc50 100644 > --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > @@ -1078,12 +1078,10 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev, > DBG_871X("pairwise =%d\n", pairwise); > > param_len = sizeof(struct ieee_param) + params->key_len; > - param = rtw_malloc(param_len); > + param = rtw_zmalloc(param_len); No, please call the "real" kernel function instead. thanks, greg k-h