From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F8A972 for ; Wed, 13 Oct 2021 12:29:48 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id AEC68610C8; Wed, 13 Oct 2021 12:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634128188; bh=h3WziEftLqB6CU7avBQ1X6oRlDM1FEjW0Zbtli9UK00=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yAjnkJJSL62mMS+MVSO+UOwK+/98XNAUaVp0cGPpaMHa09m+LKqV632jgKZvnBNTQ vMcs4PJGgG1Uajm2OzT9aevBp5wYOjR5WRpkL3jQn9KUk/h+oyPa+QhJnIFfPFNx3y oc0/tyqbqnz5mxpxCajUoj5tlar+1MAOuBGfHjR8= Date: Wed, 13 Oct 2021 14:29:45 +0200 From: Greg Kroah-Hartman To: Wan Jiabing Cc: Larry Finger , Phillip Potter , Michael Straube , Martin Kaiser , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kael_w@yeah.net Subject: Re: [PATCH] staging: r8188eu: use kzalloc instead of kmalloc and memset Message-ID: References: <20211013070149.349-1-wanjiabing@vivo.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211013070149.349-1-wanjiabing@vivo.com> On Wed, Oct 13, 2021 at 03:01:28AM -0400, Wan Jiabing wrote: > Fix following coccicheck warning: > ./drivers/staging/r8188eu/os_dep/ioctl_linux.c:422:10-17: > WARNING: kzalloc should be used for pwep, instead of kmalloc/memset > > Signed-off-by: Wan Jiabing > --- > drivers/staging/r8188eu/os_dep/ioctl_linux.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Someone just sent this same patch before you did, sorry: https://lore.kernel.org/r/20211012024624.GA1062447@embeddedor