mbox series

[0/2] fs: avoid fdput() after failed fdget()

Message ID cover.1588894359.git.skhan@linuxfoundation.org (mailing list archive)
Headers show
Series fs: avoid fdput() after failed fdget() | expand

Message

Shuah Khan May 7, 2020, 11:57 p.m. UTC
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(-)