zd1211rw: remove false assertion from zd_mac_clear()
authorOliver Neukum <oneukum@suse.com>
Tue, 13 Aug 2019 12:04:11 +0000 (14:04 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Sep 2019 13:38:58 +0000 (16:38 +0300)
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>
drivers/net/wireless/zydas/zd1211rw/zd_mac.c

index da7e63fca9f5768d02b1eeaec968f7e332397c9f..a9999d10ae81f4806c36fcbaee417027ecc03afe 100644 (file)
@@ -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));
 }