commit | 0d84b9e5631d923744767dc6608672df906dd092 | [log] [tgz] |
---|---|---|
author | Shawn Lin <shawn.lin@rock-chips.com> | Sat Feb 24 14:17:23 2018 +0800 |
committer | Ulf Hansson <ulf.hansson@linaro.org> | Tue Feb 27 15:12:25 2018 +0100 |
tree | 7f732b668625b722255a00f1e8da4a20143e7274 | |
parent | a4faa4929ed3be15e2d500d2405f992f6dedc8eb [diff] |
mmc: dw_mmc: Fix out-of-bounds access for slot's caps 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: 800d78bfccb3 ("mmc: dw_mmc: add support for implementation specific callbacks") Cc: <stable@vger.kernel.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>