Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2996979AbdDZJYw (ORCPT ); Wed, 26 Apr 2017 05:24:52 -0400 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 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AB4986032C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [1/1] rndis_wlan: add return value validation From: Kalle Valo In-Reply-To: <1492994428-16090-1-git-send-email-bianpan201603@163.com> References: <1492994428-16090-1-git-send-email-bianpan201603@163.com> To: Pan Bian Cc: Jussi Kivilinna , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pan Bian User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20170426090416.862BE6032C@smtp.codeaurora.org> Date: Wed, 26 Apr 2017 09:04:16 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 664 Lines: 19 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