Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f76f4243 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville
Browse files

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

parent a203c2aa
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -244,10 +244,12 @@ void b43_bus_set_wldev(struct b43_bus_dev *dev, void *wldev)
#ifdef CONFIG_B43_BCMA
#ifdef CONFIG_B43_BCMA
	case B43_BUS_BCMA:
	case B43_BUS_BCMA:
		bcma_set_drvdata(dev->bdev, wldev);
		bcma_set_drvdata(dev->bdev, wldev);
		break;
#endif
#endif
#ifdef CONFIG_B43_SSB
#ifdef CONFIG_B43_SSB
	case B43_BUS_SSB:
	case B43_BUS_SSB:
		ssb_set_drvdata(dev->sdev, wldev);
		ssb_set_drvdata(dev->sdev, wldev);
		break;
#endif
#endif
	}
	}
}
}