Messages in this thread | | | From | Stephen Boyd <> | Subject | Re: [PATCH] clk: boston: fix memory leak of 'onecell' on error return paths | Date | Tue, 15 May 2018 11:28:40 -0700 |
| |
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.
| |