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

Markus Elfring Markus.Elfring at web.de
Sun Oct 27 17:55:15 AEDT 2019


…
> +++ 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


More information about the openbmc mailing list