android_kernel_xiaomi_sm8350/drivers/ssb
Michael Buesch e33761e6f2 ssb: Fix range check in sprom write
The range check in the sprom image parser hex2sprom() is broken.
One sprom word is 4 hex characters.
This fixes the check and also adds much better sanity checks to the code.
We better make sure the image is OK by doing some sanity checks to avoid
bricking the device by accident.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-11-23 17:05:41 -05:00
..
b43_pci_bridge.c
driver_chipcommon_pmu.c ssb: Implement PMU LDO control and use it in b43 2009-08-28 14:40:53 -04:00
driver_chipcommon.c
driver_extif.c
driver_gige.c
driver_mipscore.c
driver_pcicore.c ssb: Put host pointers into a union 2009-10-27 16:47:55 -04:00
embedded.c
Kconfig ssb: Implement SDIO host bus support 2009-09-09 11:19:00 -04:00
main.c ssb: Fix SPROM writing 2009-11-23 17:05:41 -05:00
Makefile ssb: Implement SDIO host bus support 2009-09-09 11:19:00 -04:00
pci.c ssb: Fix error when V1 SPROM extraction is forced 2009-09-14 14:36:05 -04:00
pcihost_wrapper.c
pcmcia.c
scan.c ssb: Unconditionally log results of core scans 2009-11-23 17:05:28 -05:00
sdio.c ssb/sdio: fix printk format warnings 2009-09-16 16:21:00 -04:00
sprom.c ssb: Fix range check in sprom write 2009-11-23 17:05:41 -05:00
ssb_private.h ssb: Fix SPROM writing 2009-11-23 17:05:41 -05:00