From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from paleale.coelho.fi ([176.9.41.70]:60870 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752381AbdFNKt2 (ORCPT ); Wed, 14 Jun 2017 06:49:28 -0400 Message-ID: <1497437351.26841.45.camel@coelho.fi> (sfid-20170614_124939_993737_AF61BD12) From: Luca Coelho To: Dan Carpenter , Johannes Berg , Haim Dreyfuss Cc: Emmanuel Grumbach , Intel Linux Wireless , Kalle Valo , Sara Sharon , Liad Kaufman , Sharon Dvir , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Date: Wed, 14 Jun 2017 13:49:11 +0300 In-Reply-To: <20170614104450.GN29394@elgon.mountain> References: <20170614104450.GN29394@elgon.mountain> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Subject: Re: [PATCH] iwlwifi: missing error code in iwl_trans_pcie_alloc() Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 2017-06-14 at 13:44 +0300, Dan Carpenter wrote: > We don't set the error code here so we end up returning ERR_PTR(0) which > is NULL. The caller doesn't expect that so it results in a NULL > dereference. > > Fixes: 2e5d4a8f61dc ("iwlwifi: pcie: Add new configuration to enable MSIX") > Signed-off-by: Dan Carpenter Good catch, thanks! I'll push it to our internal tree, so it will go upstream via our normal process. -- Cheers, Luca.