OSDN Git Service

iwlwifi: pcie: fix rb_allocator workqueue allocation
authorJohannes Berg <johannes.berg@intel.com>
Fri, 28 Feb 2020 23:24:53 +0000 (04:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:42:12 +0000 (16:42 +0100)
commit1d8780188c8d7f009a05d40fbb8a111eab89746d
tree60850f34453d673763a120b41e8218d0c0908166
parent9bb5134708f105fdd8cb78bae848c364945607e3
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: Modified to apply on v4.19.y and v4.14.y]
Signed-off-by: Ajay Kaher <akaher@vmware.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c