On Thu 2019-05-16 07:40:57, Sasha Levin wrote: > From: Tony Lindgren <tony@xxxxxxxxxxx> > > [ Upstream commit dbe7208c6c4aec083571f2ec742870a0d0edbea3 ] > > If called fast enough so samples do not increment, we can get > division by zero in kernel: > > __div0 > cpcap_battery_cc_raw_div > cpcap_battery_get_property > power_supply_get_property.part.1 > power_supply_get_property > power_supply_show_property > power_supply_uevent > > Fixes: 874b2adbed12 ("power: supply: cpcap-battery: Add a battery driver") > Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx> > Acked-by: Pavel Machek <pavel@xxxxxx> > Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx> > Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> Yup, this one makes sense for stable Acked-for-stable-by: Pavel Machek <pavel@xxxxxx> Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature