Home
last modified time | relevance | path

Searched hist:"9632 e78e" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/vdpa/virtio_pci/
H A Dvp_vdpa.c9632e78e Thu Jul 15 03:00:24 CDT 2021 Xie Yongji <xieyongji@bytedance.com> 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: 64b9f64f80a6 ("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>