commit | 38da9b033becfb61e8d045a5f3d2ff4fc9f90f9b | [log] [tgz] |
---|---|---|
author | Johannes Berg <[email protected]> | Fri Jan 22 14:52:41 2021 +0200 |
committer | Greg Kroah-Hartman <[email protected]> | Sat Feb 13 13:55:11 2021 +0100 |
tree | 8e2d2f35dd7509a6ec5702f37f5043d948bf79dd | |
parent | 2262294d4258e790123fc1277587ceda88b44016 [diff] |
iwlwifi: mvm: guard against device removal in reprobe [ Upstream commit 7a21b1d4a728a483f07c638ccd8610d4b4f12684 ] If we get into a problem severe enough to attempt a reprobe, we schedule a worker to do that. However, if the problem gets more severe and the device is actually destroyed before this worker has a chance to run, we use a free device. Bump up the reference count of the device until the worker runs to avoid this situation. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/iwlwifi.20210122144849.871f0892e4b2.I94819e11afd68d875f3e242b98bef724b8236f1e@changeid Signed-off-by: Sasha Levin <[email protected]>