diff options
author | Nobuteru Hayashi <hayashi.nbb@ncos.nec.co.jp> | 2016-03-18 12:35:21 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-28 20:41:18 +0200 |
commit | 6319a68011b86fa61dc63e94dc4fb716628037f3 (patch) | |
tree | 2dbe35310b327e166e31cdc4f0e4752ce7889cbb /drivers/acpi/acpica/tbxfload.c | |
parent | spi/fsl-espi: Don't wait transaction completion forever (diff) | |
download | linux-6319a68011b86fa61dc63e94dc4fb716628037f3.tar.xz linux-6319a68011b86fa61dc63e94dc4fb716628037f3.zip |
spi/fsl-espi: avoid infinite loops on fsl_espi_cpu_irq()
It brought nearly infinite loops, and was possible to be
occurred only if the SPI transaction total size are not
alighed with 4. Loops are here at while (tmp--),
tmp is unsigned, and set it with minus value.
The loops are executed as a result of unexpected RX interrupt
occurrence after that. This interrupt may be hardware eratta
and is not fixed.
Fix mspi->len from minus value to 0 and print warning message.
Signed-off-by: Nobuteru Hayashi <hayashi.nbb@ncos.nec.co.jp>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/acpi/acpica/tbxfload.c')
0 files changed, 0 insertions, 0 deletions