diff options
author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2023-11-03 16:14:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-05 23:14:26 +0300 |
commit | 9b3fbff86a623a0ec053d5a4ab432956cb025c1f (patch) | |
tree | 9a25c22139f2e1f0e71ef91af31a6d1706022f64 /include | |
parent | 2cde325e185b43accae56a23c18b2e735245197a (diff) | |
download | linux-9b3fbff86a623a0ec053d5a4ab432956cb025c1f.tar.xz |
drm/framebuffer: Fix use of uninitialized variable
[ Upstream commit f9af8f0c1dc567a5a6a6318ff324c45d80d4a60f ]
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions