Commit 36f8a53f authored by Linus Torvalds's avatar Linus Torvalds
parents 575c9ed7 8347a5cd
...@@ -1577,7 +1577,8 @@ cifs_get_tcp_session(struct smb_vol *volume_info) ...@@ -1577,7 +1577,8 @@ cifs_get_tcp_session(struct smb_vol *volume_info)
out_err: out_err:
if (tcp_ses) { if (tcp_ses) {
kfree(tcp_ses->hostname); if (!IS_ERR(tcp_ses->hostname))
kfree(tcp_ses->hostname);
if (tcp_ses->ssocket) if (tcp_ses->ssocket)
sock_release(tcp_ses->ssocket); sock_release(tcp_ses->ssocket);
kfree(tcp_ses); kfree(tcp_ses);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment