From: Luis R. Rodriguez Date: Mon, 2 Nov 2009 17:15:15 +0000 (-0500) Subject: wl1271: use __dev_alloc_skb() on RX X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9a6269d5bcb1c7cd18cea02a9a73fac8712f2d1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wl1271: use __dev_alloc_skb() on RX RX is handled in a workqueue therefore allocating for GFP_ATOMIC is overkill and not required. Signed-off-by: Luis R. Rodriguez Acked-by: Luciano Coelho Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/wl12xx/wl1271_rx.c b/drivers/net/wireless/wl12xx/wl1271_rx.c index 37d81ab6acc0..ca645f38109b 100644 --- a/drivers/net/wireless/wl12xx/wl1271_rx.c +++ b/drivers/net/wireless/wl12xx/wl1271_rx.c @@ -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;