Skip to content

Fixes for dma-buf locking issues found by Smatch

Dmitry Osipenko dri-devel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dma-buf: Make locking consistent in dma_buf_detach()drivers/dma-buf/dma-buf.c+2 -20 replies
2/2drm/client: Prevent NULL dereference in drm_client_buffer_delete()drivers/gpu/drm/drm_client.c+3 -32 replies

Reviews trailers per patch

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

PatchChristian König
1/2R-b
2/2R-b

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/2] Fixes for dma-buf locking issues found by Smatch

Hello,

Here are the two patches fixing minor problems introduced by my "dma-buf locking convention" series. Thanks to Dan Carpenter who checked linux-next with Smatch and reported the found issues.

Changelog:

v2: - Added ack from Christian König to the dma-buf patch and improved
the dma-buf/attachment pointer check.

- Dropped v1 patch that added GEM NULL-checking to drm_gem_vunmap_unlocked() and replaced it with the NULL-checking in drm_client_buffer_delete(), like was suggested by Christian König.

Dmitry Osipenko (2):
dma-buf: Make locking consistent in dma_buf_detach() drm/client: Prevent NULL dereference in drm_client_buffer_delete()

 drivers/dma-buf/dma-buf.c    | 4 ++--
 drivers/gpu/drm/drm_client.c | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.37.3