iwlwifi: pcie: fix race in Rx buffer allocator
authorShaul Triebitz <shaul.triebitz@intel.com>
Thu, 22 Mar 2018 12:14:45 +0000 (14:14 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 30 May 2018 06:44:20 +0000 (09:44 +0300)
commit0f22e40053bd5378ad1e3250e65c574fd61c0cd6
tree8157bc61b98326b39a82eb718a5463998b7d4467
parent0eac9abace1629c20420d9122d6edc80d292b0ec
iwlwifi: pcie: fix race in Rx buffer allocator

Make sure the rx_allocator worker is canceled before running the
rx_init routine.  rx_init frees and re-allocates all rxb's pages.  The
rx_allocator worker also allocates pages for the used rxb's.  Running
rx_init and rx_allocator simultaniously causes a kernel panic.  Fix
that by canceling the work in rx_init.

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c