]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
omap_hsmmc: fix out of bounds array access
authorNikita Kiryanov <nikita@compulab.co.il>
Mon, 3 Dec 2012 02:19:42 +0000 (02:19 +0000)
committerTom Rini <trini@ti.com>
Fri, 8 Mar 2013 21:41:12 +0000 (16:41 -0500)
commit5964dadd0371238cbc91b1c2b6b24fd7d83833d8
tree5855f4727ae61b2ea102b61afcab4001b4132c39
parentfa3a69289f95efc01db0b15df326884973e80156
omap_hsmmc: fix out of bounds array access

There are 3 MMC/SD/SDIO controllers in OMAP SoCs, but only 2 structs
are defined for devices. This leads to data being written outside of
array bounds on systems that use all 3 controllers.

Update hsmmc_dev array to the correct size.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
drivers/mmc/omap_hsmmc.c