]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: fix deadlock in resume
authorOliver Neukum <oliver@neukum.org>
Sun, 26 Aug 2012 20:41:38 +0000 (20:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Aug 2012 20:12:21 +0000 (16:12 -0400)
commit5dd520b86e2ff19636effae1df4b3461af5e716b
treebbeb5fe3437e73b64562a0f48e65e2634f568d40
parent32fbbee8caed00317c8002f078993e0082a20504
usbnet: fix deadlock in resume

A usbnet device can share a multifunction device
with a storage device. If the storage device is autoresumed
the usbnet devices also needs to be autoresumed. Allocating
memory with GFP_KERNEL can deadlock in this case.

This should go back into all kernels that have
commit 352baebd4c24489284445ab3163c74a4591f108d
That is 3.5

Signed-off-by: Oliver Neukum <oneukum@suse.de>
CC: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c