Skip to contentSkip to conversation

wlcore: use GFP_KERNEL together with GFP_DMA

PATCH Applied Luciano Coelho 1 participant 2 messages May 3, 2012 TI wilink wireless drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wlcore: use GFP_KERNEL together with GFP_DMA

GFP_DMA should not be used by itself, it still needs GFP_KERNEL or such. Fix two occurrences of allocations with GFP_DMA only.

---

This is a follow-up on Dan's patch. He fixed one occurence of allocation with only the GFP_DMA flag set. This fixes the other two allocations where this was done.

 drivers/net/wireless/ti/wlcore/boot.c |    2 +-
 drivers/net/wireless/ti/wlcore/main.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/ti/wlcore/boot.c +1 -1
index 3a2207d..eb204ba 100644
@@ -72,7 +72,7 @@ static int wlcore_boot_fw_version(struct wl1271 *wl)
 	struct wl1271_static_data *static_data;
 	int ret;
 
-	static_data = kmalloc(sizeof(*static_data), GFP_DMA);
+	static_data = kmalloc(sizeof(*static_data), GFP_KERNEL | GFP_DMA);
 	if (!static_data) {
 		wl1271_error("Couldn't allocate memory for static data!");
 		return -ENOMEM;
drivers/net/wireless/ti/wlcore/main.c +1 -1
index 2b0f987..b156bc6 100644
@@ -4861,7 +4861,7 @@ struct ieee80211_hw *wlcore_alloc_hw(size_t priv_size)
 		goto err_dummy_packet;
 	}
 
-	wl->mbox = kmalloc(sizeof(*wl->mbox), GFP_DMA);
+	wl->mbox = kmalloc(sizeof(*wl->mbox), GFP_KERNEL | GFP_DMA);
 	if (!wl->mbox) {
 		ret = -ENOMEM;
 		goto err_fwlog;
Signature · 1 line
1.7.10