Re: [PATCH] regulator: ab3100 - fix the logic to remove alreadyregistered regulators in error path

From: Linus Walleij
Date: Sun Aug 15 2010 - 11:48:32 EST


2010/8/14 Axel Lin <axel.lin@xxxxxxxxx>:
> In current implementation, ab3100_regulators[0].rdev is not unregistered if
> the error happen at i > 0.
>
> This patch fixes the resource leak and also improves the readability.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>

Great, thanks!

Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxxxxxx>

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/