[ldv-project] [PATCH] usb/kaweth: use GFP_ATOMIC under spin_lock in usb_start_wait_urb()
Oliver Neukum
oliver at neukum.org
Mon Jan 12 16:37:10 MSK 2015
On Sat, 2015-01-10 at 02:16 +0300, Alexey Khoroshilov wrote:
> Commit e4c7f259c5be ("USB: kaweth.c: use GFP_ATOMIC under spin_lock")
> makes sure that kaweth_internal_control_msg() allocates memory with
> GFP_ATOMIC,
> but kaweth_internal_control_msg() also calls usb_start_wait_urb()
> that still allocates memory with GFP_NOIO.
>
> The patch fixes usb_start_wait_urb() as well.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Alexey Khoroshilov <khoroshilov at ispras.ru>
Acked-by: Oliver Neukum <oliver at neukum.org>
More information about the ldv-project
mailing list