u-boot/drivers/virtio
Andrew Scull c763e1e023 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>
2022-05-03 18:33:29 -04:00
..
Kconfig virtio: pci: Allow exclusion of legacy driver 2022-05-03 15:50:45 -04:00
Makefile virtio: pci: Allow exclusion of legacy driver 2022-05-03 15:50:45 -04:00
virtio-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
virtio_blk.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
virtio_blk.h virtio: Add block driver support 2018-11-14 09:16:27 -08:00
virtio_mmio.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
virtio_mmio.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
virtio_net.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
virtio_net.h virtio: Add net driver support 2018-11-14 09:16:27 -08:00
virtio_pci.h virtio: Add virtio over pci transport driver 2018-11-14 09:16:28 -08:00
virtio_pci_legacy.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
virtio_pci_modern.c virtio: pci: Check virtio configs are mapped 2022-05-03 18:33:29 -04:00
virtio_ring.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
virtio_rng.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
virtio_sandbox.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00