Re: [PATCH 2/4] vp_vdpa: Fix return value check for vdpa_alloc_device()

2021-07-26 Thread Stefano Garzarella
On Thu, Jul 15, 2021 at 04:00:24PM +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: 64b9f64f80a6 ("vdpa: introduce virtio pci

Re: [PATCH 2/4] vp_vdpa: 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: 64b9f64f80a6 ("vdpa: introduce virtio pci driver") Reported-by: Dan