]> 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:09:26 +0000 (09:09 +0100)
commit0c1b6b22fdac7344ea7dd318e6d071dc23da836e
treee984eb9c12d3027959ef0bd3bd815bea29dbddfb
parent57659a80d5278d12bf7fd4f1d0b78e44a36f0d34
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