diff options
| author | Raphael Gallais-Pou <[email protected]> | 2023-05-15 14:38:18 +0200 |
|---|---|---|
| committer | Philippe Cornu <[email protected]> | 2023-05-26 13:31:22 +0200 |
| commit | 898a9e3f56db9860ab091d4bf41b6caa99aafc3d (patch) | |
| tree | feccb1aa77b0e5247555a8fc49fcd25e667989d8 /tools/perf/scripts/python | |
| parent | 34235f54b021ca75ab89d8af8d7f1fc420eaded0 (diff) | |
drm/stm: ltdc: fix late dereference check
In ltdc_crtc_set_crc_source(), struct drm_crtc was dereferenced in a
container_of() before the pointer check. This could cause a kernel panic.
Fix this smatch warning:
drivers/gpu/drm/stm/ltdc.c:1124 ltdc_crtc_set_crc_source() warn: variable dereferenced before check 'crtc' (see line 1119)
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/lkml/[email protected]/
Signed-off-by: Raphael Gallais-Pou <[email protected]>
Acked-by: Philippe Cornu <[email protected]>
Signed-off-by: Philippe Cornu <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions