commit | a78d05648484a6f572533c670b358d1b33473a0f | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Thu Apr 21 16:11:01 2022 +0000 |
committer | Tom Rini <trini@konsulko.com> | Tue May 03 15:50:45 2022 -0400 |
tree | dc7c87455a4050791ddc3109bea442f42440fedc | |
parent | ba628b1dc0bc762a809426ef62de440a6ecdadcb [diff] |
virtio: pci: Bounds check device config access The device config is optional, so check it was present and mapped before trying to use the pointer. Bounds violations are an error, not just a warning, so bail if the checks fail. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>