diff options
author | Dan Carpenter <error27@gmail.com> | 2010-10-27 23:19:32 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-10-28 00:55:45 +0000 |
commit | 6b03590412c977ae8fa1635c9b80854ab19a5b78 (patch) | |
tree | b2a6d50f52cbb26241fa9bc7a951488e3b645847 | |
parent | f7c5445a9deecffea8a4fffc0163bf582411ac8a (diff) | |
download | op-kernel-dev-6b03590412c977ae8fa1635c9b80854ab19a5b78.zip op-kernel-dev-6b03590412c977ae8fa1635c9b80854ab19a5b78.tar.gz |
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>
-rw-r--r-- | fs/cifs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index d7c212a..398a15a 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); |