mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-30 00:03:27 -04:00
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: Konrad Zapalowicz <bergo.torino+kernel@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fdaef43dca
commit
239d1346f5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user