[lvc-project] [PATCH] vdpa/ifcvf: handle dev_set_name() failure in ifcvf_vdpa_dev_add()
Jason Wang
jasowang at redhat.com
Tue Mar 3 09:47:05 MSK 2026
On Thu, Feb 26, 2026 at 11:36 PM Evgenii Burenchev <evg28bur at yandex.ru> wrote:
>
> dev_set_name() may fail and return an error, but its return value
> is currently ignored and overwritten by _vdpa_register_device().
>
> Abort device creation if dev_set_name() fails and release the
> device reference to avoid continuing with an improperly initialized
> struct device.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Evgenii Burenchev <evg28bur at yandex.ru>
> ---
Acked-by: Jason Wang <jasowang at redhat.com>
Thanks
More information about the lvc-project
mailing list