summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/patches-3.2/235-bcma-fix-memleak.patch
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-13 19:35:40 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-04-13 19:35:40 +0000
commit4ad28d6429b7393334334d5cd46eeb88290e12f2 (patch)
tree79b510da8615158d8c424316720200df96151644 /target/linux/brcm47xx/patches-3.2/235-bcma-fix-memleak.patch
parent0871a01e420a1a7b672091016ec579634100699c (diff)
kernel: update bcma and ssb to version master-2012-04-12 from wireless-testing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31278 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.2/235-bcma-fix-memleak.patch')
-rw-r--r--target/linux/brcm47xx/patches-3.2/235-bcma-fix-memleak.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/target/linux/brcm47xx/patches-3.2/235-bcma-fix-memleak.patch b/target/linux/brcm47xx/patches-3.2/235-bcma-fix-memleak.patch
deleted file mode 100644
index 14d795e70..000000000
--- a/target/linux/brcm47xx/patches-3.2/235-bcma-fix-memleak.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/drivers/bcma/scan.c
-+++ b/drivers/bcma/scan.c
-@@ -458,15 +458,18 @@ int bcma_bus_scan(struct bcma_bus *bus)
- core->bus = bus;
-
- err = bcma_get_next_core(bus, &eromptr, NULL, core_num, core);
-- if (err == -ENODEV) {
-- core_num++;
-- continue;
-- } else if (err == -ENXIO)
-- continue;
-- else if (err == -ESPIPE)
-- break;
-- else if (err < 0)
-+ if (err < 0) {
-+ kfree(core);
-+ if (err == -ENODEV) {
-+ core_num++;
-+ continue;
-+ } else if (err == -ENXIO) {
-+ continue;
-+ } else if (err == -ESPIPE) {
-+ break;
-+ }
- return err;
-+ }
-
- core->core_index = core_num++;
- bus->nr_cores++;