aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2023-07-03 16:49:12 +0200
committerChristian Brauner <[email protected]>2023-07-04 10:21:11 +0200
commit33ab231f83cc12d0157711bbf84e180c3be7d7bc (patch)
tree68583c47b8f059d999c7d869c1a1ae3be8c6af78 /scripts/generate_rust_analyzer.py
parent66d8fc0539b0d49941f313c9509a8384e4245ac1 (diff)
fs: don't assume arguments are non-NULL
The helper is explicitly documented as locking zero, one, or two arguments. While all current callers do pass non-NULL arguments there's no need or requirement for them to do so according to the code and the unlock_two_nondirectories() helper is pretty clear about it as well. So only call WARN_ON_ONCE() if the checked inode is valid. Fixes: 2454ad83b90a ("fs: Restrict lock_two_nondirectories() to non-directory inodes") Reviewed-by: Jan Kara <[email protected]> Cc: Jan Kara <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions