]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/net/usb/catc.c: Fix potential deadlock in catc_ctrl_run()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 30 May 2011 07:06:24 +0000 (07:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 May 2011 22:30:17 +0000 (15:30 -0700)
commit0606411cef309fee4feb78f4c66d00efeea64f85
tree9da346841ed70c260580d29e9462ad629d0f076f
parenta2b9f0d9df02aed67cfeb64926554ff4dbb8fe1c
drivers/net/usb/catc.c: Fix potential deadlock in catc_ctrl_run()

catc_ctrl_run() calls usb_submit_urb() with GFP_KERNEL, while it is called from
catc_ctrl_async() and catc_ctrl_done() with catc->ctrl_lock spinlock held.

The patch replaces GFP_KERNEL with GFP_ATOMIC.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/catc.c