From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [1/1] rndis_wlan: add return value validation Date: Wed, 26 Apr 2017 09:04:16 +0000 (UTC) Message-ID: <20170426090416.862BE6032C@smtp.codeaurora.org> References: <1492994428-16090-1-git-send-email-bianpan201603@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Jussi Kivilinna , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pan Bian To: Pan Bian Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:40708 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937217AbdDZJEW (ORCPT ); Wed, 26 Apr 2017 05:04:22 -0400 In-Reply-To: <1492994428-16090-1-git-send-email-bianpan201603@163.com> Sender: netdev-owner@vger.kernel.org List-ID: Pan Bian wrote: > From: Pan Bian > > Function create_singlethread_workqueue() will return a NULL pointer if > there is no enough memory, and its return value should be validated > before using. However, in function rndis_wlan_bind(), its return value > is not checked. This may cause NULL dereference bugs. This patch fixes > it. > > Signed-off-by: Pan Bian Patch applied to wireless-drivers-next.git, thanks. 9dc7efd3978a rndis_wlan: add return value validation -- https://patchwork.kernel.org/patch/9695387/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches