]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: batman-adv: Don't allocate icmp packet with GFP_KERNEL
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sat, 22 May 2010 15:48:47 +0000 (17:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:38:56 +0000 (13:38 -0700)
commit0ed53f8194b8b6c7d865f84b5abd1dc6abc25b41
tree3da3845138386c843dd51d8b7b89867a624beea8
parent0eaf60e4989c2e5d1c921c881ecab8c8890c976f
Staging: batman-adv: Don't allocate icmp packet with GFP_KERNEL

A new buffer for a packet is created when a icmp packet is received.
This happens in a context with disabled irq. Thus we are not allowed to
sleep or call function which might sleep. kmalloc must be called with
GFP_ATOMIC instead of GFP_KERNEL to ensure that it does not sleep.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/device.c