Re: [PATCH] mc13783-regulator: fix a memory leak inmc13783_regulator_remove

From: Mark Brown
Date: Mon Apr 19 2010 - 13:01:01 EST


On Mon, Apr 19, 2010 at 09:58:02AM +0800, Axel Lin wrote:
> This patch fixes a memory leak by freeing priv in mc13783_regulator_remove

Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

but note that...

> + platform_set_drvdata(pdev, NULL);
> +

This is completely unrelated to what your description says (and is not
needed).
--
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/