aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-10-27 17:19:32 -0400
committerSteve French <sfrench@us.ibm.com>2010-10-27 20:55:45 -0400
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,
1362 if (!experimEnabled && tcon->ses->server->secMode & 1362 if (!experimEnabled && tcon->ses->server->secMode &
1363 (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) { 1363 (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) {
1364 cifsFileInfo_put(open_file); 1364 cifsFileInfo_put(open_file);
1365 kfree(iov);
1365 return generic_writepages(mapping, wbc); 1366 return generic_writepages(mapping, wbc);
1366 } 1367 }
1367 cifsFileInfo_put(open_file); 1368 cifsFileInfo_put(open_file);