Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
cifs: fix potential double put of TCP session reference

+3 -3
+3 -3
fs/cifs/connect.c
··· 1706 1706 if (ses) { 1707 1707 cFYI(1, "Existing smb sess found (status=%d)", ses->status); 1708 1708 1709 - /* existing SMB ses has a server reference already */ 1710 - cifs_put_tcp_session(server); 1711 - 1712 1709 mutex_lock(&ses->session_mutex); 1713 1710 rc = cifs_negotiate_protocol(xid, ses); 1714 1711 if (rc) { ··· 1728 1731 } 1729 1732 } 1730 1733 mutex_unlock(&ses->session_mutex); 1734 + 1735 + /* existing SMB ses has a server reference already */ 1736 + cifs_put_tcp_session(server); 1731 1737 FreeXid(xid); 1732 1738 return ses; 1733 1739 }