]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix xid leak in cifs_get_file_info_unix()
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Mon, 17 Oct 2022 14:45:25 +0000 (22:45 +0800)
committerSteve French <stfrench@microsoft.com>
Tue, 18 Oct 2022 16:33:43 +0000 (11:33 -0500)
commit0e82866efb7fe8c05d2a568d12d7adc9983ed984
tree0847a816afcaede99b1379238c6626d864d5bc76
parent35fd985b4b6dc4ca2c9d9ac5b5e95d8258d058c2
cifs: Fix xid leak in cifs_get_file_info_unix()

If stardup the symlink target failed, should free the xid,
otherwise the xid will be leaked.

Fixes: 5871ca74754a ("cifs: improve symlink handling for smb2+")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/inode.c