Skip to content
Commit 3aa9d065 authored by Bharath SM's avatar Bharath SM Committed by Greg Kroah-Hartman
Browse files

SMB3: Add missing locks to protect deferred close file list



[ Upstream commit ab9ddc87 ]

cifs_del_deferred_close function has a critical section which modifies
the deferred close file list. We must acquire deferred_lock before
calling cifs_del_deferred_close function.

Fixes: ca08d0ea ("cifs: Fix memory leak on the deferred close")
Signed-off-by: default avatarBharath SM <bharathsm@microsoft.com>
Acked-off-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
Acked-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c2b990d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment