From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:35564 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260AbdHXJzr (ORCPT ); Thu, 24 Aug 2017 05:55:47 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Subject: Re: [v2] mt7601u: check memory allocation failure From: Kalle Valo In-Reply-To: <20170821220617.21513-1-christophe.jaillet@wanadoo.fr> References: <20170821220617.21513-1-christophe.jaillet@wanadoo.fr> To: Christophe Jaillet Cc: kubakici@wp.pl, matthias.bgg@gmail.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Message-Id: <20170824095546.CBCFC606DD@smtp.codeaurora.org> (sfid-20170824_115600_728716_7FE24B9F) Date: Thu, 24 Aug 2017 09:55:46 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org List-ID: Christophe Jaillet wrote: > Check memory allocation failure and return -ENOMEM in such a case, as > already done a few lines below. > > As 'dev->tx_q' can be NULL, we also need to check for that in > 'mt7601u_free_tx()', and return early. > > Signed-off-by: Christophe JAILLET > Acked-by: Jakub Kicinski Patch applied to wireless-drivers-next.git, thanks. b3b2f62c6238 mt7601u: check memory allocation failure -- https://patchwork.kernel.org/patch/9913855/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches