diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-01-22 15:52:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-23 16:00:30 +0300 |
commit | 0dc0b337599fc06d0fb0ea6fa9de504edbb48b07 (patch) | |
tree | f1aaef6250bd1f12af9dba484860d3cc1c16c55e /crypto/blkcipher.c | |
parent | 4728105ccfa99a0f29ce05b4e4abeba7adeaae01 (diff) | |
download | linux-0dc0b337599fc06d0fb0ea6fa9de504edbb48b07.tar.xz |
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 <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20210122144849.871f0892e4b2.I94819e11afd68d875f3e242b98bef724b8236f1e@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/blkcipher.c')
0 files changed, 0 insertions, 0 deletions