]> asedeno.scripts.mit.edu Git - linux.git/commit
soc/tegra: pmc: Avoid crash for non-wake IRQs
authorThierry Reding <treding@nvidia.com>
Mon, 27 May 2019 10:19:23 +0000 (12:19 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 5 Jun 2019 07:53:01 +0000 (09:53 +0200)
commit03b3c21cb3e69e01008a8151b95fe32ffee30610
tree55b983c2f697e51529962c32877b5652c7db3bf5
parent77226d97725034542caadf97a4bb9969d5838ee8
soc/tegra: pmc: Avoid crash for non-wake IRQs

For interrupts that are not wakeup sources but that may end up getting
mapped through the PMC as interrupt parent (this can happen for GPIOs),
return early in order to avoid a subsequent crash from an out-of-bounds
access to the register region.

Reported-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c