Staging: gs_fpgaboot: fix memory allocation in gs_fpgaboot.c

This is a patch for gs_fpgaboot.c that fixes a memory allocation problem
identified by checkpatch.pl.

Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ben Marsh 2016-02-01 11:59:52 +01:00 committed by Greg Kroah-Hartman
parent 6e0906c72f
commit 6172624a8c
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ static int gs_fpgaboot(void)
int err;
struct fpgaimage *fimage;
fimage = kmalloc(sizeof(struct fpgaimage), GFP_KERNEL);
fimage = kmalloc(sizeof(*fimage), GFP_KERNEL);
if (!fimage)
return -ENOMEM;