diff options
| author | Evgenii Burenchev <evg28bur@yandex.ru> | 2026-02-26 18:29:23 +0300 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-06-10 09:14:02 +0300 |
| commit | 4c653e85857b41a7148917f2628fae1d04a9c251 (patch) | |
| tree | c7741f8138f481b9835bf0a6951511fe58c14d28 /include/linux/timerqueue.h | |
| parent | b3592a32b34f37874dc94aa1a0d15c4334ed86ca (diff) | |
| download | linux-4c653e85857b41a7148917f2628fae1d04a9c251.tar.xz | |
vdpa/ifcvf: handle dev_set_name() failure in ifcvf_vdpa_dev_add()
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>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
