Re: [PATCH] clk: boston: fix memory leak of 'onecell' on error return paths

From: Stephen Boyd
Date: Tue May 15 2018 - 14:28:45 EST


Quoting Dan Carpenter (2018-05-09 23:59:51)
> It would be nice to make things static check clean. One idea would be
> that the static checker could ignore resource leaks in __init functions.
>

Typically if the stuff is so important that it doesn't work without it
then we throw in a panic() or a BUG() call to indicate that all hope is
lost. Otherwise, I'm not sure what's wrong with adding in proper error
paths for clean recovery.