Re: [PATCH] drivers/net/usb/catc.c: Fix potential deadlock incatc_ctrl_run()

From: David Miller
Date: Tue May 31 2011 - 18:30:53 EST


From: Alexey Khoroshilov <khoroshilov@xxxxxxxxx>
Date: Mon, 30 May 2011 21:06:24 +0400

> 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@xxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/