From: Dan Carpenter Date: Wed, 27 Oct 2010 21:19:32 +0000 (+0200) Subject: cifs: add kfree() on error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b03590412c977ae8fa1635c9b80854ab19a5b78;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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);