]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit870dd69e95505ab520afae961bcc178b174508ed
tree0ed8d18ff371948553152b2317971b5b70350199
parent4a3d18fc4bc39be2be5383dccd0a6baaa5ad9c8e
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: 51adfa112560 ("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