diff options
author | Christian König <christian.koenig@amd.com> | 2020-10-09 16:08:55 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-11-19 12:35:58 +0300 |
commit | 1527f926fd04490f648c42f42b45218a04754f87 (patch) | |
tree | f817599287173a78196d50eacde0320a553d7289 /lib/dynamic_queue_limits.c | |
parent | f9f92e7c583f9b120bbb09edae6a587b73feb3a9 (diff) | |
download | linux-1527f926fd04490f648c42f42b45218a04754f87.tar.xz |
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>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://patchwork.freedesktop.org/patch/399359/
Diffstat (limited to 'lib/dynamic_queue_limits.c')
0 files changed, 0 insertions, 0 deletions