diff options
author | Christian König <christian.koenig@amd.com> | 2020-10-09 15:08:55 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-11-05 13:03:43 +0100 |
commit | 0227da01f2559626396af5f6c7453360db86c1f6 (patch) | |
tree | 4bd2c28e4a1de36378eb7a45be3e81b52318f043 /drivers/sfi | |
parent | ea86f3defd55f141a44146e66cbf8ffb683d60da (diff) |
mm: mmap: fix fput in error path v2
Patch "495c10cc1c0c CHROMIUM: dma-buf: restore args..."
adds a workaround for a bug in mmap_region.
As the comment states ->mmap() callback can change
vma->vm_file and so we might call fput() on the wrong file.
Revert the workaround and proper fix this in mmap_region.
v2: drop the extra if in dma_buf_mmap as well
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/394772/
Diffstat (limited to 'drivers/sfi')
0 files changed, 0 insertions, 0 deletions