lkml.org 
[lkml]   [2013]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] gpio: sx150x: use devm_kzalloc()
From
On Fri, May 24, 2013 at 1:21 PM, Nikolay Balandin
<n.a.balandin@gmail.com> wrote:

> Use devm_kzalloc() to make cleanup paths simpler.
>
> Signed-off-by: Nikolay Balandin <nbalandin@dev.rtsoft.ru>

You forgot to remove the kfree(chip); in sx150x_remove().

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2013-05-30 21:21    [W:0.047 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site