Re: [PATCH 3/4] vDPA/ifcvf: Fix return value check for vdpa_alloc_device()

2021-07-26 Thread Stefano Garzarella
On Thu, Jul 15, 2021 at 04:00:25PM +0800, Xie Yongji wrote: 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: 5a2414bc454e ("virtio: Intel IFC VF driver

Re: [PATCH 3/4] vDPA/ifcvf: Fix return value check for vdpa_alloc_device()

2021-07-15 Thread Jason Wang
在 2021/7/15 下午4:00, Xie Yongji 写道: 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: 5a2414bc454e ("virtio: Intel IFC VF driver for VDPA") Reported-by: