diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-05-30 16:32:16 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-30 16:32:16 +0200 |
commit | a0f68763e1c7dd57fa2dae3c07bc50651e2eac29 (patch) | |
tree | f3a8fc40b3f0e6eb4a8579bb799c143a62f2c354 /drivers/net/wireless/brcm80211/brcmfmac | |
parent | drop_monitor: Add module alias to enable automatic module loading (diff) | |
parent | mac80211: fix ADDBA declined after suspend with wowlan (diff) | |
download | linux-a0f68763e1c7dd57fa2dae3c07bc50651e2eac29.tar.xz linux-a0f68763e1c7dd57fa2dae3c07bc50651e2eac29.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/usb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/brcm80211/brcmfmac/usb.c index c5a34ffe6459..a299d42da8e7 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/usb.c @@ -28,6 +28,7 @@ #include <linux/uaccess.h> #include <linux/firmware.h> #include <linux/usb.h> +#include <linux/vmalloc.h> #include <net/cfg80211.h> #include <defs.h> @@ -1239,7 +1240,7 @@ static int brcmf_usb_get_fw(struct brcmf_usbdev_info *devinfo) return -EINVAL; } - devinfo->image = kmalloc(fw->size, GFP_ATOMIC); /* plus nvram */ + devinfo->image = vmalloc(fw->size); /* plus nvram */ if (!devinfo->image) return -ENOMEM; @@ -1603,7 +1604,7 @@ static struct usb_driver brcmf_usbdrvr = { void brcmf_usb_exit(void) { usb_deregister(&brcmf_usbdrvr); - kfree(g_image.data); + vfree(g_image.data); g_image.data = NULL; g_image.len = 0; } |