diff options
author | Luciano Coelho <coelho@ti.com> | 2012-05-03 10:31:02 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-15 17:53:22 -0400 |
commit | fd492ed7898570c744b2fe0d5856f11a043c66a7 (patch) | |
tree | 0afa32623681a2433377e10cb6981ecd3210ba89 /drivers/net/wireless/ti/wlcore/boot.c | |
parent | 03bed29e0501b5757ce62ebdb01829f7bd8d9819 (diff) | |
download | blackbird-op-linux-fd492ed7898570c744b2fe0d5856f11a043c66a7.tar.gz blackbird-op-linux-fd492ed7898570c744b2fe0d5856f11a043c66a7.zip |
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.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/boot.c')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/boot.c b/drivers/net/wireless/ti/wlcore/boot.c index 3a2207db5405..eb204ba97935 100644 --- a/drivers/net/wireless/ti/wlcore/boot.c +++ b/drivers/net/wireless/ti/wlcore/boot.c @@ -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; |