diff options
author | Andrew Scull <ascull@google.com> | 2022-04-21 16:11:14 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-03 18:33:29 -0400 |
commit | c763e1e023cc08e6ec5fefc2be3ae28d685c0e21 (patch) | |
tree | 99e64cb14f47e4b6e4e980c6c2cf336cde00da7c /common/menu.c | |
parent | 2635e3b50f8e646fc54c2bb15a017dea61a64a68 (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>
Diffstat (limited to 'common/menu.c')
0 files changed, 0 insertions, 0 deletions