gpio-charger: Check result of kzalloc
Since kzalloc can return NULL we have to check its result. Signed-off-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NVasiliy Kulikov <segoon@openwall.com> Signed-off-by: NDan Carpenter <error27@gmail.com> Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
Showing
想要评论请 注册 或 登录