lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 18 Nov 2010 16:58:17 +0300
From:	Anton Vorontsov <cbouatmailru@...il.com>
To:	Sven Neumann <s.neumann@...mfeld.com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	David Woodhouse <dwmw2@...radead.org>
Subject: Re: [PATCH] ds2760_battery: fix calculation of time_to_empty_now

On Fri, Nov 12, 2010 at 11:36:22AM +0100, Sven Neumann wrote:
> A check against division by zero was modified in commit b0525b48.
> Since this change time_to_empty_now is always reported as zero
> while the battery is discharging and as a negative value while
> the battery is charging. This is because current is negative while
> the battery is discharging.
> 
> Fix the check introduced by commit b0525b48 so that time_to_empty_now
> is reported correctly during discharge and as zero while charging.
> 
> Signed-off-by: Sven Neumann <s.neumann@...mfeld.com>
> Acked-by: Daniel Mack <daniel@...aq.de>

Applied (with Cc: stable@...nel.org [2.6.32..2.6.36]).

Thanks!

-- 
Anton Vorontsov
email: cbouatmailru@...il.com
irc://irc.freenode.net/bd2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ