Re: [PATCH 1/4] vdpa_sim: Fix return value check for vdpa_alloc_device()

2021-07-26 Thread Stefano Garzarella
On Thu, Jul 15, 2021 at 04:00:23PM +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: 2c53d0f64c06 ("vdpasim: vDPA device

Re: [PATCH 1/4] vdpa_sim: Fix return value check for vdpa_alloc_device()

2021-07-15 Thread Jason Wang
在 2021/7/15 下午3:59, 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: 2c53d0f64c06 ("vdpasim: vDPA device simulator") Reported-by: Dan