Re: [PATCH] gpio: sx150x: use devm_kzalloc()

From: Linus Walleij
Date: Thu May 30 2013 - 14:47:32 EST


On Fri, May 24, 2013 at 1:21 PM, Nikolay Balandin
<n.a.balandin@xxxxxxxxx> wrote:

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

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

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/