commit | 3d41dd4f41a859359fedbf047af35bd8d6fac0b5 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Thu Apr 21 16:11:14 2022 +0000 |
committer | Tom Rini <trini@konsulko.com> | Tue May 03 18:33:29 2022 -0400 |
tree | 99e64cb14f47e4b6e4e980c6c2cf336cde00da7c | |
parent | 6520c8240f1693af2765ec46437466c11843d8ce [diff] |
virtio: pci: Check virtio configs are mapped Prepare for calls to `virtio_pci_map_capability()` failing by returning NULL on error. If this happens, later accesses to the pointers would be unsafe so cause the probe to fail if such an error occurs. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>