Skip to content

Commit ee6c6e7

Browse files
Davidlohr Buesogregkh
authored andcommitted
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. Fixes: 9442e81 ("staging/wlan-ng, prism2usb: replace completion_bh tasklet with work") Reported-by: syzbot+ce3408364c4a234dd90c@syzkaller.appspotmail.com Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Link: https://lore.kernel.org/r/20220629165225.3436822-1-dave@stgolabs.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a111daf commit ee6c6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/wlan-ng/hfa384x_usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2632,7 +2632,7 @@ static void hfa384x_usbctlx_reaper_task(struct work_struct *work)
26322632
*/
26332633
static void hfa384x_usbctlx_completion_task(struct work_struct *work)
26342634
{
2635-
struct hfa384x *hw = container_of(work, struct hfa384x, reaper_bh);
2635+
struct hfa384x *hw = container_of(work, struct hfa384x, completion_bh);
26362636
struct hfa384x_usbctlx *ctlx, *temp;
26372637
unsigned long flags;
26382638

0 commit comments

Comments
 (0)