diff options
author | Khaled ROMDHANI <khaledromdhani216@gmail.com> | 2021-05-04 16:38:55 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-05-04 11:53:15 -0500 |
commit | bae4c0c1c2d576d32e37925ef972a5d45f34e36d (patch) | |
tree | 8f7c59f39cbee8d7758280737ac26eed88c4b2d8 /fs/locks.c | |
parent | 78c09634f7dc061a3bd09704cdbebb3762a45cdf (diff) | |
download | linux-bae4c0c1c2d576d32e37925ef972a5d45f34e36d.tar.bz2 |
fs/cifs: Fix resource leak
The -EIO error return path is leaking memory allocated
to page. Fix this by moving the allocation block after
the check of cifs_forced_shutdown.
Addresses-Coverity: ("Resource leak")
Fixes: 087f757b0129 ("cifs: add shutdown support")
Signed-off-by: Khaled ROMDHANI <khaledromdhani216@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions