linux/drivers/vdpa
Xie Yongji 9632e78e82 vp_vdpa: Fix return value check for vdpa_alloc_device()
The vdpa_alloc_device() returns an error pointer upon
failure, not NULL. To handle the failure correctly, this
replaces NULL check with IS_ERR() check and propagate the
error upwards.

Fixes: 64b9f64f80 ("vdpa: introduce virtio pci driver")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Link: https://lore.kernel.org/r/20210715080026.242-2-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
2021-08-11 06:44:23 -04:00
..
ifcvf vdpa: support packed virtqueue for set/get_vq_state() 2021-07-08 07:49:01 -04:00
mlx5 vdpa: support packed virtqueue for set/get_vq_state() 2021-07-08 07:49:01 -04:00
vdpa_sim vdpa_sim: Fix return value check for vdpa_alloc_device() 2021-08-11 06:44:23 -04:00
virtio_pci vp_vdpa: Fix return value check for vdpa_alloc_device() 2021-08-11 06:44:23 -04:00
Kconfig vdpa: add vdpa simulator for block device 2021-05-03 04:55:53 -04:00
Makefile vdpa: introduce virtio pci driver 2021-05-03 04:55:51 -04:00
vdpa.c vdpa: Follow kdoc comment style 2021-05-03 04:55:51 -04:00