Commit 04688d61 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'v6.19-rc2-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fix from Steve French:

 - Fix potential memory leak

* tag 'v6.19-rc2-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6:
  cifs: Fix memory and information leak in smb3_reconfigure()
parents 1e5e062a cb6d5aa9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1139,6 +1139,8 @@ static int smb3_reconfigure(struct fs_context *fc)
	rc = smb3_sync_session_ctx_passwords(cifs_sb, ses);
	if (rc) {
		mutex_unlock(&ses->session_mutex);
		kfree_sensitive(new_password);
		kfree_sensitive(new_password2);
		return rc;
	}