Skip to contentSkip to conversation

b43: bus: fix memory corruption when setting driver's data

PATCH New Rafał Miłecki 1 participant 2 messages Jul 22, 2011 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 b43: bus: fix memory corruption when setting driver's data

Fixes bug described in:
https://bugzilla.kernel.org/show_bug.cgi?id=39172

---
John: this is trivial and fixes quite ugly memory (linked list exactly) corruption. I believe this fix should be taken for 3.1.

---
 drivers/net/wireless/b43/bus.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/bus.c +2 -0
index 64c3f65..05f6c7b 100644
@@ -244,10 +244,12 @@ void b43_bus_set_wldev(struct b43_bus_dev *dev, void *wldev)
 #ifdef CONFIG_B43_BCMA
 	case B43_BUS_BCMA:
 		bcma_set_drvdata(dev->bdev, wldev);
+		break;
 #endif
 #ifdef CONFIG_B43_SSB
 	case B43_BUS_SSB:
 		ssb_set_drvdata(dev->sdev, wldev);
+		break;
 #endif
 	}
 }
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 2/2 b43: bcma: drop BROKEN

We've fixed the last issue with BCMA support which caused memory corruption on loading and unloading b43. Support for BCMA in b43 was tested with 14e4:4353, 14e4:4357, 14e4:4727 and 14e4:4331. First two cards (BCM43224 and BCM43225) are supported.

---
John: after fixing memory corruption we have finally stable driver for BCMA. It works with my BCM43224 and BCM43225 cards, all the problems seem to be resolved.

I know it's few hours after opening merge window, but maybe you could make an exception for this patch and take it for 3.1?

---
 drivers/net/wireless/b43/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/b43/Kconfig +1 -1
index d2293dc..3cab843 100644
@@ -28,7 +28,7 @@ config B43
 
 config B43_BCMA
 	bool "Support for BCMA bus"
-	depends on B43 && BCMA && BROKEN
+	depends on B43 && BCMA
 	default y
 
 config B43_SSB
Signature · 1 line
1.7.3.4