Skip to content

Commit e909d05

Browse files
z00467499smfrench
authored andcommitted
cifs: Fix xid leak in cifs_ses_add_channel()
Before return, should free the xid, otherwise, the xid will be leaked. Fixes: d70e9fa ("cifs: try opening channels after mounting") Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Zhang Xiaoxu <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 575e079 commit e909d05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/sess.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses,
496496
cifs_put_tcp_session(chan->server, 0);
497497
}
498498

499+
free_xid(xid);
499500
return rc;
500501
}
501502

0 commit comments

Comments
 (0)