summaryrefslogtreecommitdiff
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-10-27 23:19:32 +0200
committerSteve French <sfrench@us.ibm.com>2010-10-28 00:55:45 +0000
commit6b03590412c977ae8fa1635c9b80854ab19a5b78 (patch)
treeb2a6d50f52cbb26241fa9bc7a951488e3b645847 /fs/cifs/file.c
parentf7c5445a9deecffea8a4fffc0163bf582411ac8a (diff)
cifs: add kfree() on error path
We leak 256 bytes here on this error path. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index d7c212a38386..398a15a99a1b 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -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);