diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-03-23 16:34:51 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-03-24 13:38:16 +0100 |
commit | fbea947c7d122f4704001fac2a96b617f767037a (patch) | |
tree | 3b5edfdd2c0d942317d88b3d90cacd9b8395dfda /drivers/power | |
parent | 8fb0885504cc029bd48877fa89ba91c33c0110b5 (diff) | |
download | linux-fbea947c7d122f4704001fac2a96b617f767037a.tar.bz2 |
HID: input: Fix NULL pointer dereference when power_supply_register fails
Do not call power_supply_powers() if power_supply_register() failed
earlier. This fixes possible NULL pointer dereference by
power_supply_powers() in such case.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions