summaryrefslogtreecommitdiff
path: root/crypto/crypto_user_base.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2019-12-16 14:24:57 +0300
committerMarc Zyngier <maz@kernel.org>2020-01-28 16:17:46 +0300
commit926b5dfa6b8dc666ff398044af6906b156e1d949 (patch)
treee398bec7077ffd76deccea742da947a7b962ae46 /crypto/crypto_user_base.c
parentf4a81f5a853e0b7c38bfad3afd6d0365d654e777 (diff)
downloadlinux-926b5dfa6b8dc666ff398044af6906b156e1d949.tar.xz
irqchip/gic-v3: Only provision redistributors that are enabled in ACPI
We currently allocate redistributor region structures for individual redistributors when ACPI doesn't present us with compact MMIO regions covering multiple redistributors. It turns out that we allocate these structures even when the redistributor is flagged as disabled by ACPI. It works fine until someone actually tries to tarse one of these structures, and access the corresponding MMIO region. Instead, track the number of enabled redistributors, and only allocate what is required. This makes sure that there is no invalid data to misuse. Signed-off-by: Marc Zyngier <maz@kernel.org> Reported-by: Heyi Guo <guoheyi@huawei.com> Tested-by: Heyi Guo <guoheyi@huawei.com> Link: https://lore.kernel.org/r/20191216062745.63397-1-guoheyi@huawei.com
Diffstat (limited to 'crypto/crypto_user_base.c')
0 files changed, 0 insertions, 0 deletions