summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2026-09-28 12:58:49 -0700
committerChristian König <christian.koenig@amd.com>2026-10-28 15:00:57 +0100
commit6ce0c151d52f6741b6c04569e1886bc7837faa5d (patch)
tree3ea1e7459dbac2318163099d162e6ee64640ba5b /include
parente87fd0513792a5cf90f502399faa9e19439747e6 (diff)
dma-buf: validate the attachment before asserting its reservation lock
dma_buf_phys_vec_to_sgt() asserts the reservation lock before its NULL checks run. Validate first, then assert. Fixes: 3aa31a8bb11e ("dma-buf: provide phys_vec to scatter-gather mapping routine") Reviewed-by: T.J. Mercier <tjmercier@google.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Signed-off-by: Christian König <christian.koenig@amd.com> Link: https://lore.kernel.org/r/20260928195850.1982569-2-dave@stgolabs.net
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions