On Wed, 27 Oct 2010 23:19:32 +0200
Dan Carpenter <[email protected]> wrote:

> We leak 256 bytes here on this error path. 
> 
> Signed-off-by: Dan Carpenter <[email protected]>
> 
> diff --git a/fs/cifs/file.c b/fs/cifs/file.c
> index 45af003..06a006b 100644
> --- a/fs/cifs/file.c
> +++ b/fs/cifs/file.c
> @@ -1353,6 +1353,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);

Good catch.

Acked-by: Jeff Layton <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to