]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/batman-adv/device.c
Staging: batman-adv: Don't allocate icmp packet with GFP_KERNEL
[net-next-2.6.git] / drivers / staging / batman-adv / device.c
index ad82ec4a48562d9f44fcba08cd767931764af220..7eb6559e03158d07eada6eccddf882ddaa2ec537 100644 (file)
@@ -309,7 +309,7 @@ void bat_device_add_packet(struct device_client *device_client,
        struct device_packet *device_packet;
        unsigned long flags;
 
-       device_packet = kmalloc(sizeof(struct device_packet), GFP_KERNEL);
+       device_packet = kmalloc(sizeof(struct device_packet), GFP_ATOMIC);
 
        if (!device_packet)
                return;