]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: core: Limit retries when analyse of SDIO tuples fails
authorFengnan Chang <fengnanchang@gmail.com>
Sat, 23 Jan 2021 03:32:31 +0000 (11:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:21:08 +0000 (09:21 +0100)
commit366e087253a96eab710f547fa6aadbeefda1e4c9
tree57b762d1c36bf847fedcaa8c52d39c24e383bdab
parent8c323163303d9923927c176977abdbe998f217ff
mmc: core: Limit retries when analyse of SDIO tuples fails

commit f92e04f764b86e55e522988e6f4b6082d19a2721 upstream.

When analysing tuples fails we may loop indefinitely to retry. Let's avoid
this by using a 10s timeout and bail if not completed earlier.

Signed-off-by: Fengnan Chang <fengnanchang@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210123033230.36442-1-fengnanchang@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/sdio_cis.c