summaryrefslogtreecommitdiffstats
path: root/security/inode.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2019-04-07 11:12:48 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-25 18:23:42 +0200
commit900bf351dd8467ef0354312eedad8811d16ea507 (patch)
tree6cf369617d5a33833e127ab3ed093f7ee9f2ee57 /security/inode.c
parentb7771cb0143bd2e763f8e0071f33a7ea0e440186 (diff)
downloadlinux-stable-900bf351dd8467ef0354312eedad8811d16ea507.tar.gz
linux-stable-900bf351dd8467ef0354312eedad8811d16ea507.tar.bz2
linux-stable-900bf351dd8467ef0354312eedad8811d16ea507.zip
power: supply: cpcap-battery: Fix division by zero
[ 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@atomide.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security/inode.c')
0 files changed, 0 insertions, 0 deletions