From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [1/1] mt7601u: check return value of alloc_skb Date: Wed, 26 Apr 2017 09:03:05 +0000 (UTC) Message-ID: <20170426090305.082D761493@smtp.codeaurora.org> References: <1492930823-17249-1-git-send-email-bianpan2016@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Jakub Kicinski , netdev@vger.kernel.org, Pan Bian , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org To: Pan Bian Return-path: In-Reply-To: <1492930823-17249-1-git-send-email-bianpan2016@163.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org List-Id: netdev.vger.kernel.org Pan Bian wrote: > Function alloc_skb() will return a NULL pointer if there is no enough > memory. However, in function mt7601u_mcu_msg_alloc(), its return value > is not validated before it is used. This patch fixes it. > > Signed-off-by: Pan Bian > Acked-by: Jakub Kicinski Patch applied to wireless-drivers-next.git, thanks. 5fb01e91daf8 mt7601u: check return value of alloc_skb -- https://patchwork.kernel.org/patch/9694549/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches