
13 Apr
2022
13 Apr
'22
5:12 p.m.
On Wed, Mar 30, 2022 at 12:59 AM Andrew Scull ascull@google.com wrote:
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
drivers/virtio/virtio_pci_modern.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com