cifs: Fix xid leak in cifs_ses_add_channel()
[ Upstream commite909d054bd] Before return, should free the xid, otherwise, the xid will be leaked. Fixes:d70e9fa558("cifs: try opening channels after mounting") Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2d08311aa3
commit
7286f87551
1 changed files with 1 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ out:
|
|||
cifs_put_tcp_session(chan->server, 0);
|
||||
unload_nls(vol.local_nls);
|
||||
|
||||
free_xid(xid);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue