Re: [PATCH] fs: avoid fdput() after failed fdget() in vfs_dedupe_file_range()

From: Al Viro
Date: Sat Apr 14 2018 - 03:56:28 EST


On Sat, Apr 14, 2018 at 01:16:58AM -0500, Zev Weiss wrote:
> It's a fairly inconsequential bug, since fdput() won't actually try to
> fput() the file due to fd.flags (and thus FDPUT_FPUT) being zero in
> the failure case, but most other vfs code takes steps to avoid this.

Applied.