aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/gs_fpgaboot
diff options
context:
space:
mode:
authorBen Marsh <bmarsh94@gmail.com>2016-02-01 11:59:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 20:07:29 -0800
commit6172624a8ce743d51a674d952ff8d591a9116bce (patch)
treed988fce250df1a9ea566d19e166c87528da323c6 /drivers/staging/gs_fpgaboot
parent6e0906c72f037fa83ba89ed59443e70e2c39e6ef (diff)
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>
Diffstat (limited to 'drivers/staging/gs_fpgaboot')
-rw-r--r--drivers/staging/gs_fpgaboot/gs_fpgaboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c
index a3a10f9a2a2b..4c1d53492e67 100644
--- a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c
+++ b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c
@@ -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;