aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-07-22 07:11:04 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-26 16:27:30 -0400
commitf76f424353e678f904c6c13f997851efb6077419 (patch)
tree6813abbee3f1c34d7b70c359262df3ae7e1bcd9d /drivers/net/wireless/b43
parenta203c2aa4cefccb879c879b8e1cad1a09a679e55 (diff)
b43: bus: fix memory corruption when setting driver's data
Fixes bug described in: https://bugzilla.kernel.org/show_bug.cgi?id=39172 Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r--drivers/net/wireless/b43/bus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/bus.c b/drivers/net/wireless/b43/bus.c
index 64c3f65ff8c0..05f6c7bff6ab 100644
--- a/drivers/net/wireless/b43/bus.c
+++ b/drivers/net/wireless/b43/bus.c
@@ -244,10 +244,12 @@ void b43_bus_set_wldev(struct b43_bus_dev *dev, void *wldev)
244#ifdef CONFIG_B43_BCMA 244#ifdef CONFIG_B43_BCMA
245 case B43_BUS_BCMA: 245 case B43_BUS_BCMA:
246 bcma_set_drvdata(dev->bdev, wldev); 246 bcma_set_drvdata(dev->bdev, wldev);
247 break;
247#endif 248#endif
248#ifdef CONFIG_B43_SSB 249#ifdef CONFIG_B43_SSB
249 case B43_BUS_SSB: 250 case B43_BUS_SSB:
250 ssb_set_drvdata(dev->sdev, wldev); 251 ssb_set_drvdata(dev->sdev, wldev);
252 break;
251#endif 253#endif
252 } 254 }
253} 255}