Skip to content

drm: Fix errors about uninitialized/wrong variables

Tomi Valkeinen dri-devel lkml 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20230804-uninit-fixes-188f92d60ac3

Versions newest first

  1. v2 Latest4 patches 2 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Added two more fixes
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/drm_file: fix use of uninitialized variabledrivers/gpu/drm/drm_file.c+1 -10 replies
2/4drm/framebuffer: Fix use of uninitialized variabledrivers/gpu/drm/drm_framebuffer.c+1 -10 replies
3/4drm/bridge: cdns-mhdp8546: Fix use of uninitialized variabledrivers/gpu/drm/bridge/cadence/cdns-mhdp8546-hdcp.c+2 -10 replies
4/4drm/bridge: tc358767: Fix return value on error casedrivers/gpu/drm/bridge/tc358767.c+1 -10 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLaurent PinchartMaxime Ripard
SeriesA-b
1/4R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] drm: Fix errors about uninitialized/wrong variables

Fix cases where smatch reports a use of an uninitialized variable, and one where the variable is initialized but contains wrong value.

Tomi

---
Changes in v2:
- Added two more fixes
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Tomi Valkeinen (4):
drm/drm_file: fix use of uninitialized variable drm/framebuffer: Fix use of uninitialized variable drm/bridge: cdns-mhdp8546: Fix use of uninitialized variable drm/bridge: tc358767: Fix return value on error case

 drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-hdcp.c | 3 ++-
 drivers/gpu/drm/bridge/tc358767.c                   | 2 +-
 drivers/gpu/drm/drm_file.c                          | 2 +-
 drivers/gpu/drm/drm_framebuffer.c                   | 2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)

---
base-commit: 9d7c8c066916f231ca0ed4e4fce6c4b58ca3e451
change-id: 20230804-uninit-fixes-188f92d60ac3

Best regards,

Signature · 1 line
Tomi Valkeinen <[email protected]>