[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20220629165225.3436822-1-dave@stgolabs.net>
Date: Wed, 29 Jun 2022 09:52:25 -0700
From: Davidlohr Bueso <dave@...olabs.net>
To: syzbot+ce3408364c4a234dd90c@...kaller.appspotmail.com
Cc: aldas60@...il.com, gregkh@...uxfoundation.org,
keescook@...omium.org, linux-kernel@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-usb@...r.kernel.org,
nathan@...nel.org, syzkaller-bugs@...glegroups.com,
Davidlohr Bueso <dave@...olabs.net>
Subject: [PATCH] staging/wlan-ng: get the correct struct hfa384x in work callback
hfa384x_usbctlx_completion_task() is bogusly using the reaper BH when
in fact this is the completion_bh. This was reflected when trying
to acquire the hw->ctlxq.lock and getting a failed lockdep class
initialized to it.
Reported-by: syzbot+ce3408364c4a234dd90c@...kaller.appspotmail.com
Fixes: 9442e81d7e7 (staging/wlan-ng, prism2usb: replace completion_bh tasklet with work)
Signed-off-by: Davidlohr Bueso <dave@...olabs.net>
---
drivers/staging/wlan-ng/hfa384x_usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 33844526c797..02fdef7a16c8 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -2632,7 +2632,7 @@ static void hfa384x_usbctlx_reaper_task(struct work_struct *work)
*/
static void hfa384x_usbctlx_completion_task(struct work_struct *work)
{
- struct hfa384x *hw = container_of(work, struct hfa384x, reaper_bh);
+ struct hfa384x *hw = container_of(work, struct hfa384x, completion_bh);
struct hfa384x_usbctlx *ctlx, *temp;
unsigned long flags;
--
2.36.1
Powered by blists - more mailing lists