linux-stable/drivers/mmc
Shawn Lin ec274a6515 mmc: dw_mmc: Fix out-of-bounds access for slot's caps
commit 0d84b9e563 upstream.

Add num_caps field for dw_mci_drv_data to validate the controller
id from DT alias and non-DT ways.

Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Fixes: 800d78bfcc ("mmc: dw_mmc: add support for implementation specific callbacks")
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-08 22:41:03 -08:00
..
core mmc: core: apply NO_CMD23 quirk to some specific cards 2017-12-20 10:10:19 +01:00
host mmc: dw_mmc: Fix out-of-bounds access for slot's caps 2018-03-08 22:41:03 -08:00
Kconfig mmc: Kconfig: downgrade CONFIG_MMC_DEBUG for host drivers only 2017-08-30 14:01:34 +02:00
Makefile mmc: Kconfig: downgrade CONFIG_MMC_DEBUG for host drivers only 2017-08-30 14:01:34 +02:00