commit | 096fc160b706237b6643a15a8e13690de238af0f | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Mon Aug 07 00:37:55 2017 +0200 |
committer | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | Fri Aug 11 18:53:18 2017 +0200 |
tree | 2f9c76eae99c6cdd224e7d3151bf6bc9b0d7822b | |
parent | 46cecd130d553f7340d033a4019839e9c018200d [diff] |
power: supply: charger-manager: Fix a NULL pointer dereference in 'charger_manager_probe()' 'devm_kzalloc()' can return NULL. Return -ENOMEM in this case in order to avoid a NULL pointer dereference later on. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>