Re: [PATCH] ds2760_battery.c: fix division by zero

From: Matt Reimer
Date: Mon Mar 09 2009 - 12:46:09 EST


Daniel Mack wrote:
> The 'battery remaining capacity' calculation in
> drivers/power/ds2760_battery.c lacks a parameter check to a division
> operation which causes the kernel to oops on my board.
>
Signed-off-by: Matt Reimer <mreimer@xxxxxxxx>

Matt
--
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/