summaryrefslogtreecommitdiff
path: root/include/uapi/asm-generic/sockios.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2023-11-03 16:14:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-05 23:14:26 +0300
commit2cde325e185b43accae56a23c18b2e735245197a (patch)
tree9c0a70eecdb3dcba38aaa664ef6f00b99868cc42 /include/uapi/asm-generic/sockios.h
parent01e7578c7cd3d8815fae130ac74b1303c056bd2d (diff)
downloadlinux-2cde325e185b43accae56a23c18b2e735245197a.tar.xz
drm/drm_file: fix use of uninitialized variable
[ Upstream commit 1d3062fad9c7313fff9970a88e0538a24480ffb8 ] smatch reports: drivers/gpu/drm/drm_file.c:967 drm_show_memory_stats() error: uninitialized symbol 'supported_status'. 'supported_status' is only set in one code path. I'm not familiar with the code to say if that path will always be ran in real life, but whether that is the case or not, I think it is good to initialize 'supported_status' to 0 to silence the warning (and possibly fix a bug). 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-1-c22b2444f5f5@ideasonboard.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi/asm-generic/sockios.h')
0 files changed, 0 insertions, 0 deletions