lkml.org 
[lkml]   [2018]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] clk: boston: fix memory leak of 'onecell' on error return paths
Date
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.

\
 
 \ /
  Last update: 2018-05-15 20:28    [W:0.071 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site