diff options
author | Oliver Neukum <oneukum@suse.com> | 2019-08-13 14:04:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-05 13:13:59 +0200 |
commit | 9e6431c0f2e431a587de8999f37f2bde509c6dd7 (patch) | |
tree | cb74134c7a902b25d4f19313d46f1a4720464118 | |
parent | 8e9a39559b73f01c8831a862e1ba9ce335d9808a (diff) | |
download | linux-stable-9e6431c0f2e431a587de8999f37f2bde509c6dd7.tar.gz linux-stable-9e6431c0f2e431a587de8999f37f2bde509c6dd7.tar.bz2 linux-stable-9e6431c0f2e431a587de8999f37f2bde509c6dd7.zip |
zd1211rw: remove false assertion from zd_mac_clear()
[ Upstream commit 7a2eb7367fdea72e448d1a847aa857f6caf8ea2f ]
The function is called before the lock which is asserted was ever used.
Just remove it.
Reported-by: syzbot+74c65761783d66a9c97c@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/net/wireless/zydas/zd1211rw/zd_mac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_mac.c b/drivers/net/wireless/zydas/zd1211rw/zd_mac.c index da7e63fca9f5..a9999d10ae81 100644 --- a/drivers/net/wireless/zydas/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zydas/zd1211rw/zd_mac.c @@ -223,7 +223,6 @@ void zd_mac_clear(struct zd_mac *mac) { flush_workqueue(zd_workqueue); zd_chip_clear(&mac->chip); - lockdep_assert_held(&mac->lock); ZD_MEMCLEAR(mac, sizeof(struct zd_mac)); } |