[PATCH 0/2] fs: avoid fdput() after failed fdget()
From: Shuah Khan
Date: Thu May 07 2020 - 19:57:16 EST
While debugging an unrelated problem that got me down the path of
reviewing at all the fdget() and fdput() paths in the kernel.
While doing the review, I noticed these two places where fdput()
is called after failed fdget(). Fixing them in these two patches.
Shuah Khan (2):
fs: avoid fdput() after failed fdget() in ksys_sync_file_range()
fs: avoid fdput() after failed fdget() in kernel_read_file_from_fd()
fs/exec.c | 2 +-
fs/sync.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
--
2.20.1