diff options
author | Zhang Xiaoxu <zhangxiaoxu5@huawei.com> | 2022-10-17 22:45:23 +0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-10-18 11:33:43 -0500 |
commit | 575e079c782b9862ec2626403922d041a42e6ed6 (patch) | |
tree | a475738cb5d1400170cd9b46aed37f4a346b55df /fs/xfs/xfs_mru_cache.h | |
parent | 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9 (diff) | |
download | linux-575e079c782b9862ec2626403922d041a42e6ed6.tar.gz |
cifs: Fix xid leak in cifs_flock()
If not flock, before return -ENOLCK, should free the xid,
otherwise, the xid will be leaked.
Fixes: d0677992d2af ("cifs: add support for flock")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/xfs/xfs_mru_cache.h')
0 files changed, 0 insertions, 0 deletions