Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d70c6731 authored by Timo Teräs's avatar Timo Teräs Committed by Greg Kroah-Hartman
Browse files

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 <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarTimo Teräs <timo.teras@iki.fi>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 268eff90
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;