staging: ozwpan: kmalloc flag

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>
This commit is contained in:
Rupesh Gujare 2012-06-20 13:36:08 +01:00 committed by Greg Kroah-Hartman
parent df49093ae4
commit fec9f24b62
1 changed files with 1 additions and 1 deletions

View 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;