commit | 5d806f9fc8e63d7a44e0fd1ef26a7c27efae0e51 | [log] [tgz] |
---|---|---|
author | Stephen Boyd <sboyd@codeaurora.org> | Fri Feb 03 12:43:11 2017 -0800 |
committer | Stephen Boyd <sboyd@codeaurora.org> | Mon Feb 06 14:48:32 2017 -0800 |
tree | 9b4313c80e5a6f8f2ba0822ba2d46c0c162706aa | |
parent | ca6f2796eef7fcff66a3b3f4bf45a7493ead0620 [diff] |
clk: sunxi-ng: Check kzalloc() for errors and cleanup error path This kzalloc() could fail. Let's bail out with -ENOMEM here instead of NULL dereferencing. That silences static checkers. We should also cleanup on the error path even though this function returning an error probably means the system won't boot. Cc: Chen-Yu Tsai <wens@csie.org> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>