mmc: fix off-by-one bug in mmc_startup_v4()
authorAlexander Kochetkov <al.kochet@gmail.com>
Tue, 20 Feb 2018 11:35:55 +0000 (14:35 +0300)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 23 Feb 2018 06:57:41 +0000 (15:57 +0900)
commit76584e33988fc9f6c80199e04ca6e249baf7289a
treef3b455d4882973f45dccbfef8f8424dbc3a036a6
parent8a856db238072dbee370cb0f01648fe0462fe677
mmc: fix off-by-one bug in mmc_startup_v4()

MMC card with EXT_CSD_REV value 9 will trigger off-by-one
bug while accessing mmc_versions array. The patch fix that.

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
drivers/mmc/mmc.c