mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
wifi: iwlwifi: Fix error code in iwl_op_mode_dvm_start()
Preserve the error code if iwl_setup_deferred_work() fails. The current
code returns ERR_PTR(0) (which is NULL) on this path. I believe the
missing error code potentially leads to a use after free involving
debugfs.
Fixes: 90a0d9f339 ("iwlwifi: Add missing check for alloc_ordered_workqueue")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/a7a1cd2c-ce01-461a-9afd-dbe535f8df01@sabinyo.mountain
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
This commit is contained in:
parent
28aa52b618
commit
cf80c02a9f
|
|
@ -1467,7 +1467,8 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
|
|||
/********************
|
||||
* 6. Setup services
|
||||
********************/
|
||||
if (iwl_setup_deferred_work(priv))
|
||||
err = iwl_setup_deferred_work(priv);
|
||||
if (err)
|
||||
goto out_uninit_drv;
|
||||
|
||||
iwl_setup_rx_handlers(priv);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user