]> git.baikalelectronics.ru Git - kernel.git/commit
usb/kaweth: use GFP_ATOMIC under spin_lock in usb_start_wait_urb()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 9 Jan 2015 23:16:22 +0000 (02:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 21:42:49 +0000 (16:42 -0500)
commit048a5581ad3bb1d1338141fa64307a4256ff2323
tree4a3676da41a8fec1c01bac61fad12445f19fd4c8
parent9bdcacd05daa5dc1f7d92b886c93ccca4878889c
usb/kaweth: use GFP_ATOMIC under spin_lock in usb_start_wait_urb()

Commit aeed2e427db4 ("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@ispras.ru>
Acked-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/kaweth.c