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:
parent
df49093ae4
commit
fec9f24b62
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue