Commit fec9f24b authored by Rupesh Gujare's avatar Rupesh Gujare Committed by Greg Kroah-Hartman

staging: ozwpan: kmalloc flag

Pass right flag as memory is assigned in process
 context.
Signed-off-by: default avatarRupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df49093a
...@@ -794,7 +794,7 @@ void oz_binding_add(char *net_dev) ...@@ -794,7 +794,7 @@ void oz_binding_add(char *net_dev)
{ {
struct oz_binding *binding; struct oz_binding *binding;
binding = kmalloc(sizeof(struct oz_binding), GFP_ATOMIC); binding = kmalloc(sizeof(struct oz_binding), GFP_KERNEL);
if (binding) { if (binding) {
binding->ptype.type = __constant_htons(OZ_ETHERTYPE); binding->ptype.type = __constant_htons(OZ_ETHERTYPE);
binding->ptype.func = oz_pkt_recv; binding->ptype.func = oz_pkt_recv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment