diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c index 22f48342584b39b06755a1dea7d465c2805a1865..9109a286a8696d79bfaf9bd02a1be70ced752a55 100644 --- a/drivers/media/platform/davinci/vpfe_capture.c +++ b/drivers/media/platform/davinci/vpfe_capture.c @@ -1848,7 +1848,7 @@ static int vpfe_probe(struct platform_device *pdev) } /* Allocate memory for ccdc configuration */ - ccdc_cfg = kmalloc(sizeof(struct ccdc_config), GFP_KERNEL); + ccdc_cfg = kmalloc(sizeof(*ccdc_cfg), GFP_KERNEL); if (!ccdc_cfg) goto probe_free_dev_mem;