aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-05-18 15:43:04 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-05-18 15:43:04 +0000
commit7dd6e5c7bb6919441c53f3d5f23237e2cac77813 (patch)
tree09980f56617eceea3eaff64930aa84b727dcd5a4 /package/mac80211/patches
parente3678eb33eb4ebd24b7a53194056b16d93341029 (diff)
downloadupstream-7dd6e5c7bb6919441c53f3d5f23237e2cac77813.tar.gz
upstream-7dd6e5c7bb6919441c53f3d5f23237e2cac77813.tar.bz2
upstream-7dd6e5c7bb6919441c53f3d5f23237e2cac77813.zip
mac80211: add brcmfmac driver
SVN-Revision: 31786
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch b/package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch
new file mode 100644
index 0000000000..b3bb95e632
--- /dev/null
+++ b/package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch
@@ -0,0 +1,28 @@
+--- 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
+ return -EINVAL;
+ }
+
+- devinfo->image = kmalloc(fw->size, GFP_ATOMIC); /* plus nvram */
++ devinfo->image = vmalloc(fw->size); /* plus nvram */
+ if (!devinfo->image)
+ return -ENOMEM;
+
+@@ -1602,7 +1603,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;
+ }