wl1271: use __dev_alloc_skb() on RX
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 2 Nov 2009 17:15:15 +0000 (12:15 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Nov 2009 23:44:53 +0000 (18:44 -0500)
RX is handled in a workqueue therefore allocating for GFP_ATOMIC
is overkill and not required.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1271_rx.c

index 37d81ab6acc025626e486e77b6018ad607587c85..ca645f38109b531dc805efac08938908f2054042 100644 (file)
@@ -159,7 +159,7 @@ static void wl1271_rx_handle_data(struct wl1271 *wl, u32 length)
        u8 *buf;
        u8 beacon = 0;
 
-       skb = dev_alloc_skb(length);
+       skb = __dev_alloc_skb(length, GFP_KERNEL);
        if (!skb) {
                wl1271_error("Couldn't allocate RX frame");
                return;