diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2017-02-03 12:43:11 -0800 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-02-06 14:48:32 -0800 |
commit | 5d806f9fc8e63d7a44e0fd1ef26a7c27efae0e51 (patch) | |
tree | 9b4313c80e5a6f8f2ba0822ba2d46c0c162706aa /Documentation/remoteproc.txt | |
parent | ca6f2796eef7fcff66a3b3f4bf45a7493ead0620 (diff) | |
download | linux-5d806f9fc8e63d7a44e0fd1ef26a7c27efae0e51.tar.gz linux-5d806f9fc8e63d7a44e0fd1ef26a7c27efae0e51.tar.bz2 linux-5d806f9fc8e63d7a44e0fd1ef26a7c27efae0e51.zip |
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>
Diffstat (limited to 'Documentation/remoteproc.txt')
0 files changed, 0 insertions, 0 deletions