diff options
author | Sergey Shtylyov <s.shtylyov@omp.ru> | 2021-12-17 23:27:16 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-12-21 15:22:34 +0300 |
commit | 77bed755e0f06135faccdd3948863703f9a6e640 (patch) | |
tree | 6b1dadd1fc05cd00232d9e9091b40db23a0f3801 /drivers/perf/arm_dmc620_pmu.c | |
parent | ebc4dcf1625a30de23510175abe6fd0035d72cdb (diff) | |
download | linux-77bed755e0f06135faccdd3948863703f9a6e640.tar.xz |
mmc: meson-mx-sdhc: add IRQ check
The driver neglects to check the result of platform_get_irq()'s call and
blithely passes the negative error codes to devm_request_threaded_irq()
(which takes *unsigned* IRQ #), causing it to fail with -EINVAL, overriding
an original error code. Stop calling devm_request_threaded_irq() with the
invalid IRQ #s.
Fixes: e4bf1b0970ef ("mmc: host: meson-mx-sdhc: new driver for the Amlogic Meson SDHC host")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20211217202717.10041-2-s.shtylyov@omp.ru
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/perf/arm_dmc620_pmu.c')
0 files changed, 0 insertions, 0 deletions