Skip to content

drm/udl: fix EDID short transfer check and probe USB cleanup

Hui Peng dri-devel lkml stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Change (ret != 2) to (ret < 2) in udl_read_edid_block(), as requested by Thomas Zimmermann.
- Add Reviewed-by tag from Thomas Zimmermann to both patches.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/udl: reject short USB control transfers in udl_read_edid_block()drivers/gpu/drm/udl/udl_edid.c+1 -11 reply
2/2drm/udl: clean up USB resources if drm_dev_register() failsdrivers/gpu/drm/udl/udl_drv.c+3 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchThomas Zimmermann
1/2R-b R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] drm/udl: fix EDID short transfer check and probe USB cleanup

This series fixes two error-handling issues in the udl DRM driver:

1. Reject short USB control transfers (ret < 2) in udl_read_edid_block() with -EIO so uninitialized or stale bytes from read_buff[1] are not copied into the EDID buffer.
2. Call udl_drop_usb(udl) when drm_dev_register() fails in udl_usb_probe() so the allocated URB list and DMA buffers are released.

Changes in v3:
- Change (ret != 2) to (ret < 2) in udl_read_edid_block(), as requested by Thomas Zimmermann.
- Add Reviewed-by tag from Thomas Zimmermann to both patches.

Changes in v2:
- Split into two separate patches, as requested by Jani Nikula.

Hui Peng (2):
drm/udl: reject short USB control transfers in udl_read_edid_block() drm/udl: clean up USB resources if drm_dev_register() fails

 drivers/gpu/drm/udl/udl_drv.c  | 4 +++-
 drivers/gpu/drm/udl/udl_edid.c | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)