Re: [PATCH 2/2] ovl: fix reference counting in ovl_mmap error path

2021-04-22 Thread Daniel Vetter
On Wed, Apr 21, 2021 at 03:20:12PM +0200, Christian König wrote: > mmap_region() now calls fput() on the vma->vm_file. > > Fix this by using vma_set_file() so it doesn't need to be > handled manually here any more. > > Signed-off-by: Christian König > Fixes: 1527f926fd04 ("mm: mmap: fix fput in

[PATCH 2/2] ovl: fix reference counting in ovl_mmap error path

2021-04-21 Thread Christian König
mmap_region() now calls fput() on the vma->vm_file. Fix this by using vma_set_file() so it doesn't need to be handled manually here any more. Signed-off-by: Christian König Fixes: 1527f926fd04 ("mm: mmap: fix fput in error path v2") CC: sta...@vger.kernel.org # 5.11+ --- fs/overlayfs/file.c | 1