mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
cifs: add kfree() on error path
We leak 256 bytes here on this error path. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Jeff Layton <[email protected]> Signed-off-by: Steve French <[email protected]>
This commit is contained in:
parent
f7c5445a9d
commit
6b03590412
1 changed files with 1 additions and 0 deletions
|
|
@ -1362,6 +1362,7 @@ static int cifs_writepages(struct address_space *mapping,
|
|||
if (!experimEnabled && tcon->ses->server->secMode &
|
||||
(SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) {
|
||||
cifsFileInfo_put(open_file);
|
||||
kfree(iov);
|
||||
return generic_writepages(mapping, wbc);
|
||||
}
|
||||
cifsFileInfo_put(open_file);
|
||||
|
|
|
|||
Loading…
Reference in a new issue