diff options
author | Boris Brezillon <[email protected]> | 2023-07-24 13:26:10 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2023-08-10 08:29:14 +0200 |
commit | 07dd476f6116966cb2006e25fdcf48f0715115ff (patch) | |
tree | 2b366fbbb7e26ff19e5d055abcdc639e35177a99 /scripts/generate_rust_analyzer.py | |
parent | 43dae319b50fac075ad864f84501c703ef20eb2b (diff) |
drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap()
The dma-buf backend is supposed to provide its own vm_ops, but some
implementation just have nothing special to do and leave vm_ops
untouched, probably expecting this field to be zero initialized (this
is the case with the system_heap implementation for instance).
Let's reset vma->vm_ops to NULL to keep things working with these
implementations.
Fixes: 26d3ac3cb04d ("drm/shmem-helpers: Redirect mmap for imported dma-buf")
Cc: <[email protected]>
Cc: Daniel Vetter <[email protected]>
Reported-by: Roman Stratiienko <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Tested-by: Roman Stratiienko <[email protected]>
Reviewed-by: Thomas Zimmermann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions