iwlwifi: missing error code in iwl_trans_pcie_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jun 2017 10:44:51 +0000 (13:44 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 21 Jul 2017 09:26:38 +0000 (12:26 +0300)
commit2388bd7b133504fa0991f483db66fad3a0de8694
tree0ed8d18ff371948553152b2317971b5b70350199
parent61dd8a8a6a0c3cbfb6b02ab652c4f4efb93f3d79
iwlwifi: missing error code in iwl_trans_pcie_alloc()

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 <dan.carpenter@oracle.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c