Re: [PATCH] media: aspeed-video: Fix memory leaks in aspeed_video_probe

From: Markus Elfring
Date: Sun Oct 27 2019 - 02:56:14 EST


â
> +++ b/drivers/media/platform/aspeed-video.c
> @@ -1663,18 +1663,24 @@ static int aspeed_video_probe(struct platform_device *pdev)
â
> +free_video:
> + kfree(video);
â

I am curious if there is a need for such a memory release at another place.
How do you think about to add this function call also to the implementation
of the function âaspeed_video_removeâ?

Regards,
Markus