From: Oliver Neukum Date: Tue, 13 Aug 2019 12:04:11 +0000 (+0200) Subject: zd1211rw: remove false assertion from zd_mac_clear() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7a2eb7367fdea72e448d1a847aa857f6caf8ea2f;p=openwrt%2Fstaging%2Fblogic.git 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: Oliver Neukum Signed-off-by: Kalle Valo --- 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)); }