staging: ozwpan: kmalloc flag
authorRupesh Gujare <rgujare@ozmodevices.com>
Wed, 20 Jun 2012 12:36:08 +0000 (13:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2012 23:05:35 +0000 (16:05 -0700)
Pass right flag as memory is assigned in process
 context.

Signed-off-by: Rupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozproto.c

index 502e18a..a50ab18 100644 (file)
@@ -794,7 +794,7 @@ void oz_binding_add(char *net_dev)
 {
        struct oz_binding *binding;
 
-       binding = kmalloc(sizeof(struct oz_binding), GFP_ATOMIC);
+       binding = kmalloc(sizeof(struct oz_binding), GFP_KERNEL);
        if (binding) {
                binding->ptype.type = __constant_htons(OZ_ETHERTYPE);
                binding->ptype.func = oz_pkt_recv;