Files
linux-stable-mirror/drivers
Tomi Valkeinen 711b5cc5f6 drm/framebuffer: Fix use of uninitialized variable
[ Upstream commit f9af8f0c1d ]

smatch reports:

drivers/gpu/drm/drm_framebuffer.c:654 drm_mode_getfb2_ioctl() error: uninitialized symbol 'ret'.

'ret' is possibly not set when there are no errors, causing the error
above. I can't say if that ever happens in real-life, but in any case I
think it is good to initialize 'ret' to 0.

Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231103-uninit-fixes-v2-2-c22b2444f5f5@ideasonboard.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-23 08:54:47 +01:00
..
2023-11-20 11:08:27 +01:00
2023-11-20 11:08:22 +01:00
2024-02-23 08:54:38 +01:00
2024-01-25 14:52:31 -08:00
2023-12-13 18:36:31 +01:00