From 6b03590412c977ae8fa1635c9b80854ab19a5b78 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 27 Oct 2010 23:19:32 +0200 Subject: [PATCH] cifs: add kfree() on error path We leak 256 bytes here on this error path. Signed-off-by: Dan Carpenter Acked-by: Jeff Layton Signed-off-by: Steve French --- fs/cifs/file.c | 1 + 1 file changed, 1 insertion(+) 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); -- GitLab