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

Commit 239d1346 authored by Konrad Zapalowicz's avatar Konrad Zapalowicz Committed by Greg Kroah-Hartman
Browse files

staging: dgnc: Fix sleeping under spinlock bug



This commit changes the memory allocation flags to ATOMIC in order to
avoid sleeping in the nowait/nolock code.

Signed-off-by: default avatarKonrad Zapalowicz <bergo.torino+kernel@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fdaef43d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -462,7 +462,7 @@ void dgnc_sniff_nowait_nolock(struct channel_t *ch, uchar *text, uchar *buf, int
	char *p;
	int too_much_data;

	tmpbuf = kzalloc(TMPBUFLEN, GFP_KERNEL);
	tmpbuf = kzalloc(TMPBUFLEN, GFP_ATOMIC);
	if (!tmpbuf)
		return;
	p = tmpbuf;