commit | 3665392ae3929c81ff48d306e56eea5fa0567c17 | [log] [tgz] |
---|---|---|
author | Alexandru Elisei <alexandru.elisei@arm.com> | Tue Apr 14 15:39:41 2020 +0100 |
committer | Will Deacon <will@kernel.org> | Wed Apr 15 16:27:17 2020 +0100 |
tree | 8e0afdc7b19ed2884b34f6770897381fd9b0d91e | |
parent | 5b7fef16262a09d37be4760fca1bfbb4edd48984 [diff] |
vfio/pci: Don't access unallocated regions Don't try to configure a BAR if there is no region associated with it. Also move the variable declarations from inside the loop to the start of the function for consistency. Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Will Deacon <will@kernel.org>