Commit 7a2eb736 authored by Oliver Neukum's avatar Oliver Neukum Committed by Kalle Valo

zd1211rw: remove false assertion from zd_mac_clear()

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: default avatarOliver Neukum <oneukum@suse.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 73c742bb
...@@ -223,7 +223,6 @@ void zd_mac_clear(struct zd_mac *mac) ...@@ -223,7 +223,6 @@ void zd_mac_clear(struct zd_mac *mac)
{ {
flush_workqueue(zd_workqueue); flush_workqueue(zd_workqueue);
zd_chip_clear(&mac->chip); zd_chip_clear(&mac->chip);
lockdep_assert_held(&mac->lock);
ZD_MEMCLEAR(mac, sizeof(struct zd_mac)); ZD_MEMCLEAR(mac, sizeof(struct zd_mac));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment