]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/virtio: Handle drm_crtc_init_with_planes() errors
authorAlexandr Sapozhnikov <alsp705@gmail.com>
Mon, 22 Sep 2025 14:44:13 +0000 (17:44 +0300)
committerDmitry Osipenko <dmitry.osipenko@collabora.com>
Thu, 9 Oct 2025 03:04:01 +0000 (06:04 +0300)
commitdc84dbcc54d2f0f35942ca54aa7a04770aa97199
treedc8d75a20e2e47c1c1b2fba1496133b59b3b982b
parent40527034d1d5719f9e87ccd4382a83c6865b3d8f
drm/virtio: Handle drm_crtc_init_with_planes() errors

Return value of function drm_crtc_init_with_planes(),
called by vgdev_output_init(), is not checked,
but it is usually checked for this function.

Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Alexandr Sapozhnikov <alsp705@gmail.com>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
[dmitry.osipenko@collabora.com: coding style fix, edit commit message]
Link: https://lore.kernel.org/r/20250922144418.41-1-alsp705@gmail.com
drivers/gpu/drm/virtio/virtgpu_display.c