mirror of
https://github.com/torvalds/linux.git
synced 2026-09-19 00:58:02 +02:00
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@yandex.ru> Acked-by: Jason Wang <jasowang@redhat.com> Acked-by: Zhu Lingshan <lingshan.zhu@kernel.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260226152924.38790-1-evg28bur@yandex.ru> |
||
|---|---|---|
| .. | ||
| ifcvf_base.c | ||
| ifcvf_base.h | ||
| ifcvf_main.c | ||
| Makefile | ||