RE: [PATCH V4 5/5] vdpasim: vDPA device simulator

From: Harpreet Singh Anand
Date: Fri Feb 21 2020 - 03:33:43 EST


+ ret = device_register(&vdpasim->dev);
+ if (ret)
+ goto err_init;
+
+ vdpasim->vdpa = vdpa_alloc_device(dev, dev, &vdpasim_net_config_ops);
+ if (ret)
+ goto err_vdpa;

[HSA] Incorrect checking of the return value of vdpa_alloc_device.