Commit 943fb67
committed
cifs: missing lock when updating session status
Coverity noted a place where we were not grabbing
the ses_lock when setting (and checking) ses_status.
Addresses-Coverity: 1536833 ("Data race condition (MISSING_LOCK)")
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent d906be3 commit 943fb67
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1916 | 1916 | | |
1917 | 1917 | | |
1918 | 1918 | | |
| 1919 | + | |
1919 | 1920 | | |
1920 | 1921 | | |
1921 | 1922 | | |
1922 | | - | |
1923 | | - | |
1924 | 1923 | | |
| 1924 | + | |
| 1925 | + | |
1925 | 1926 | | |
1926 | 1927 | | |
1927 | 1928 | | |
1928 | 1929 | | |
1929 | 1930 | | |
1930 | 1931 | | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
1931 | 1935 | | |
1932 | 1936 | | |
1933 | 1937 | | |
| |||
0 commit comments