aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-30 01:01:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-05-30 01:01:06 +0000
commit79e4cca4e70410bcd97597d01803df4f10b64808 (patch)
treeddbb857e08e6eb21ee8427a2f433273ee056a28f /package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch
parent06134628f51c310f52435653f8b46b78f340e68b (diff)
downloadmaster-187ad058-79e4cca4e70410bcd97597d01803df4f10b64808.tar.gz
master-187ad058-79e4cca4e70410bcd97597d01803df4f10b64808.tar.bz2
master-187ad058-79e4cca4e70410bcd97597d01803df4f10b64808.zip
mac80211: update to wireless-testing 2012-05-29
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32002 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch')
-rw-r--r--package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch b/package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch
deleted file mode 100644
index b3bb95e632..0000000000
--- a/package/mac80211/patches/890-brcmfmac-fix-memory-allocation.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- 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;
- }