gpio-charger: Check result of kzalloc
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 18 Nov 2010 22:08:37 +0000 (23:08 +0100)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 21 Dec 2010 23:27:30 +0000 (02:27 +0300)
commit2e9ff5f5e4c6b034554f3539f29529265279102c
treefce7b8d464a06eec1f162d3f4d2132f9baa9ad4c
parent8477cedb49c69ce64b603d76c7776811eec0f9d7
gpio-charger: Check result of kzalloc

Since kzalloc can return NULL we have to check its result.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/gpio-charger.c