Re: [PATCH 2/3] drivers/power: add missing kfree(jz_battery) in jz_battery_remove()
From: Lars-Peter Clausen
Date: Tue Sep 28 2010 - 07:41:23 EST
Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
Acked-By: Lars-Peter Clausen <lars@xxxxxxxxxx>
> ---
> drivers/power/jz4740-battery.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c
> index 20c4b95..a8108a7 100644
> --- a/drivers/power/jz4740-battery.c
> +++ b/drivers/power/jz4740-battery.c
> @@ -383,6 +383,7 @@ static int __devexit jz_battery_remove(struct platform_device *pdev)
>
> iounmap(jz_battery->base);
> release_mem_region(jz_battery->mem->start, resource_size(jz_battery->mem));
> + kfree(jz_battery);
>
> return 0;
> }
Thanks
- Lars
--
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/