diff options
author | Zenghui Yu <yuzenghui@huawei.com> | 2020-01-14 19:22:12 +0800 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-01-19 18:06:20 +0000 |
commit | 821c10c2ae0bac5a8503cc7e961e7af90ea676eb (patch) | |
tree | a68976db54a2fdd11f37aff66107e3ba71dc7935 /mm/mempool.c | |
parent | 1cfbb484de158e378e8971ac40f3082e53ecca55 (diff) | |
download | linux-821c10c2ae0bac5a8503cc7e961e7af90ea676eb.tar.gz linux-821c10c2ae0bac5a8503cc7e961e7af90ea676eb.tar.bz2 linux-821c10c2ae0bac5a8503cc7e961e7af90ea676eb.zip |
KVM: arm/arm64: vgic-its: Properly check the unmapped coll in DISCARD handler
Discard is supposed to fail if the collection is not mapped to any
target redistributor. We currently check if the collection is mapped
by "ite->collection" but this is incomplete (e.g., mapping a LPI to
an unmapped collection also results in a non NULL ite->collection).
What actually needs to be checked is its_is_collection_mapped(), let's
turn to it.
Also take this chance to remove an extra blank line.
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20200114112212.1411-1-yuzenghui@huawei.com
Diffstat (limited to 'mm/mempool.c')
0 files changed, 0 insertions, 0 deletions