Skip to content
Commit bae4c0c1 authored by Khaled ROMDHANI's avatar Khaled ROMDHANI Committed by Steve French
Browse files

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: 087f757b ("cifs: add shutdown support")
Signed-off-by: default avatarKhaled ROMDHANI <khaledromdhani216@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 78c09634
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment