Commit 5a3d4263 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: ax8817x/usbnet, no GFP_KERNEL blocking in_irq

This removes some nasty might_sleep() warnings.
Worth fixing before 2.6.10-final IMO; we don't
actually _know_ of oopses this bug caused ...

The AX8817x link detection code was calling usb_submit_urb() with
GFP_KERNEL in a completion handler (IRQ handler).  That's a no-no.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 04a37979
......@@ -527,7 +527,7 @@ static void ax8817x_interrupt_complete(struct urb *urb, struct pt_regs *regs)
devdbg(dev, "ax8817x - Link Status is: %d", link);
}
}
usb_submit_urb(data->int_urb, GFP_KERNEL);
usb_submit_urb(data->int_urb, GFP_ATOMIC);
}
}
......
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