[PATCH 3/6] staging: ozwpan: kmalloc flag

Rupesh Gujare rgujare at ozmodevices.com
Wed Jun 20 12:36:08 UTC 2012


Pass right flag as memory is assigned in process
 context.
 
Signed-off-by: Rupesh Gujare <rgujare at ozmodevices.com>
---
 drivers/staging/ozwpan/ozproto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c
index 502e18a..a50ab18 100644
--- a/drivers/staging/ozwpan/ozproto.c
+++ b/drivers/staging/ozwpan/ozproto.c
@@ -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;
-- 
1.7.5.4





More information about the devel mailing list