Re: [PATCH 1/1] xen/gntdev: kmalloc structure gntdev_copy_batch

From: Juergen Gross
Date: Mon May 09 2016 - 01:26:08 EST


On 07/05/16 10:17, Heinrich Schuchardt wrote:
> Commit a4cdb556cae0 ("xen/gntdev: add ioctl for grant copy")
> leads to a warning
> xen/gntdev.c: In function âgntdev_ioctl_grant_copyâ:
> xen/gntdev.c:949:1: warning: the frame size of 1248 bytes
> is larger than 1024 bytes [-Wframe-larger-than=]
>
> This can be avoided by using kmalloc instead of the stack.
>
> Testing requires CONFIG_XEN_GNTDEV.
>
> Fixes: a4cdb556cae0 ("xen/gntdev: add ioctl for grant copy")
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>

Acked-by: Juergen Gross <jgross@xxxxxxxx>