[lkml]   [2012]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 12/13] backlight: tosa_bl: use devm_ functions
    On Sat, May 26, 2012 at 10:43:07AM +0400, Dmitry Eremin-Solenikov wrote:
    > On Fri, May 25, 2012 at 6:30 AM, Jingoo Han <> wrote:

    > > The devm_ functions allocate memory that is released when a driver
    > > detaches. This patch uses devm_kzalloc of these functions.

    > Strictly speaking I see no point in this changes. There are no
    > 'missing free' problems
    > in these drivers, the code path is clean enough. Is devm_kzalloc usage some kind
    > of policy, or it is just a future-proof change?

    It does provide robustness against future changes and it's also the more
    current style; if nothing else it helps anyone who wants to go and audit
    for leaks.

     \ /
      Last update: 2012-05-28 15:41    [W:0.021 / U:8.764 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site