From: Ben Marsh Date: Mon, 1 Feb 2016 10:59:52 +0000 (+0100) Subject: Staging: gs_fpgaboot: fix memory allocation in gs_fpgaboot.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6172624a8ce743d51a674d952ff8d591a9116bce;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;