commit | 22762711479959754e005f5bb8e6abc37bf9e0ba | [log] [tgz] |
---|---|---|
author | Zev Weiss <zev@bewilderbeest.net> | Sat Apr 14 01:16:58 2018 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sun Apr 15 23:36:26 2018 -0400 |
tree | 5d68bdb49a6908d061fe46a1c3c084708a35d286 | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 [diff] |
fs: avoid fdput() after failed fdget() in vfs_dedupe_file_range() 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. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>