diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2018-10-05 18:38:29 +0530 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2018-11-14 09:59:03 -0800 |
commit | e0f2cfeb59c81cbcfc7fbcb7ec0636020499813b (patch) | |
tree | fe997857155d9e83d67cf88e403879af6b3c8e24 /net/ipv6 | |
parent | 8c1919a2b48f172bfb4db5aa93d5809dd26738b3 (diff) |
soc: qcom: llcc-slice: Add error checks for API functions
llcc_slice_getd can return a ERR_PTR code on failure. Add a IS_ERR_OR_NULL
check to subsequent API calls that use struct llcc_slice_desc to guard
against faults and to let the leaf drivers get away with safely using a
ERR_PTR() encoded "pointer" in the aftermath of a llcc_slice_getd error.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions