lkml.org 
[lkml]   [2020]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] fs: avoid fdput() after failed fdget()
Date
While debugging an unrelated problem, I noticed these two cases fdput()
is called after failed fdget() while reviewing at all the fdget() and
fdput() paths in the kernel.

Changes since v1:
Patch 1:
Changed to address review comments to refine the code for improved
readability in addition to the change to avoid fdput() on failed
fdget()
Patch 2:
No change to v1. Including it in the series to keep the patches
together.

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 | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2020-05-12 21:44    [W:0.095 / U:1.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site