From: Timo Teräs Date: Fri, 17 Dec 2010 09:40:24 +0000 (+0200) Subject: staging: hv: fix netvsc sleeping while atomic X-Git-Tag: v2.6.38-rc3~8^2~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d70c673153d42e8aefd5ac296c8159ef222d076b;p=karo-tx-linux.git staging: hv: fix netvsc sleeping while atomic The channel callbacks are called directly from vmbus_event_dpc which runs in tasklet context. These callbacks need to use GFP_ATOMIC. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16701 Cc: Hank Janssen Cc: Haiyang Zhang Signed-off-by: Timo Teräs Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index df9cd131e953..0edbe7483a4c 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -1279,7 +1279,7 @@ static void netvsc_channel_cb(void *context) /* ASSERT(device); */ packet = kzalloc(NETVSC_PACKET_SIZE * sizeof(unsigned char), - GFP_KERNEL); + GFP_ATOMIC); if (!packet) return; buffer = packet;