aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorHenrique Carvalho <[email protected]>2025-11-13 18:09:13 +0000
committerSteve French <[email protected]>2025-11-20 09:03:30 +0000
commita9d1f38df7ecd0e21233447c9cc6fa1799eddaf3 (patch)
treee6c35c5fcdabe1a5a3abadad30723d0ceb3da977 /lib/test_fortify/write_overflow-strlcpy-src.c
parentLinux 6.18-rc6 (diff)
downloadkernel-a9d1f38df7ecd0e21233447c9cc6fa1799eddaf3.tar.gz
kernel-a9d1f38df7ecd0e21233447c9cc6fa1799eddaf3.zip
smb: client: introduce close_cached_dir_locked()
Replace close_cached_dir() calls under cfid_list_lock with a new close_cached_dir_locked() variant that uses kref_put() instead of kref_put_lock() to avoid recursive locking when dropping references. While the existing code works if the refcount >= 2 invariant holds, this area has proven error-prone. Make deadlocks impossible and WARN on invariant violations. Cc: [email protected] Reviewed-by: David Howells <[email protected]> Signed-off-by: Henrique Carvalho <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions