iwlwifi: pcie: fix rb_allocator workqueue allocation
authorJohannes Berg <johannes.berg@intel.com>
Fri, 28 Feb 2020 23:24:54 +0000 (04:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 06:53:00 +0000 (07:53 +0100)
commit35c4725efddd669307d7c047cb385becc9c08bf3
tree11aef037861d71f0c342c4297ed2a324ab1d8d82
parent4cd444443b6f3732fbe0552315cc5e5b35112a85
iwlwifi: pcie: fix rb_allocator workqueue allocation

commit 8188a18ee2e48c9a7461139838048363bfce3fef upstream

We don't handle failures in the rb_allocator workqueue allocation
correctly. To fix that, move the code earlier so the cleanup is
easier and we don't have to undo all the interrupt allocations in
this case.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
[Ajay: Rewrote this patch for v4.9.y, as 4.9.y codebase is different from mainline]
Signed-off-by: Ajay Kaher <akaher@vmware.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c