aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorTony Lindgren <[email protected]>2019-04-07 11:12:48 -0700
committerSebastian Reichel <[email protected]>2019-04-10 00:53:20 +0200
commitdbe7208c6c4aec083571f2ec742870a0d0edbea3 (patch)
treec4b36fe416c4a6054f12bc6f42541ba08bdb4a2e /scripts/gcc-plugins/gcc-common.h
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff)
power: supply: cpcap-battery: Fix division by zero
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 <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions