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)
commitab6f148de28261682d300662e87b9477f7efc95b
treebbeb5fe3437e73b64562a0f48e65e2634f568d40
parentb72c200975a4ed579dbf3353019e19528745a29a
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 65841fd5132c3941cdf5df09e70df3ed28323212
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