diff options
| author | Zhang Xiaoxu <[email protected]> | 2022-10-17 14:45:24 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2022-10-18 16:33:43 +0000 |
| commit | e909d054bdea75ef1ec48c18c5936affdaecbb2c (patch) | |
| tree | 16d2f88271d7241fb12f732d62574d3aa682cdbe | |
| parent | cifs: Fix xid leak in cifs_flock() (diff) | |
| download | kernel-e909d054bdea75ef1ec48c18c5936affdaecbb2c.tar.gz kernel-e909d054bdea75ef1ec48c18c5936affdaecbb2c.zip | |
cifs: Fix xid leak in cifs_ses_add_channel()
Before return, should free the xid, otherwise, the
xid will be leaked.
Fixes: d70e9fa55884 ("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]>
| -rw-r--r-- | fs/cifs/sess.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 0435d1dfa9e1..92e4278ec35d 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -496,6 +496,7 @@ out: cifs_put_tcp_session(chan->server, 0); } + free_xid(xid); return rc; } |
