lkml.org 
[lkml]   [2010]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: ab8500 - fix the logic to remove already registered regulators in error path
On Sat, Aug 14, 2010 at 09:44:04PM +0800, Axel Lin wrote:
> In current implementation, ab8500_regulator_info[0].regulator 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@gmail.com>

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>


\
 
 \ /
  Last update: 2010-08-15 17:45    [from the cache]
©2003-2011 Jasper Spaans