Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2996888AbdDZJYT (ORCPT ); Wed, 26 Apr 2017 05:24:19 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39502 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1434939AbdDZJDH (ORCPT ); Wed, 26 Apr 2017 05:03:07 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A33D16032C 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] mt7601u: check return value of alloc_skb From: Kalle Valo In-Reply-To: <1492930823-17249-1-git-send-email-bianpan2016@163.com> References: <1492930823-17249-1-git-send-email-bianpan2016@163.com> To: Pan Bian Cc: Jakub Kicinski , Matthias Brugger , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Pan Bian User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20170426090305.4C13361496@smtp.codeaurora.org> Date: Wed, 26 Apr 2017 09:03:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 574 Lines: 16 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