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