drm/udl: fix EDID short transfer check and probe USB cleanup
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 1 replyIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/udl: reject short USB control transfers in udl_read_edid_block()drivers/ | +1 | 1 reply | |
| 2/2 | drm/udl: clean up USB resources if drm_dev_register() failsdrivers/ | +3 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Thomas Zimmermann |
|---|---|
| 1/2 | R-b R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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(-)