[v2 1/7] soc: qcom: llcc-slice: Add error checks for API functions
Andy Gross
andy.gross at linaro.org
Wed Nov 14 18:00:34 UTC 2018
On Fri, Oct 05, 2018 at 06:38:29PM +0530, Sharat Masetty wrote:
> From: Jordan Crouse <jcrouse at codeaurora.org>
>
> 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 at codeaurora.org>
> Reviewed-by: Vivek Gautam <vivek.gautam at codeaurora.org>
> ---
Thanks for sending this. I'll queue this up.
Andy
More information about the dri-devel
mailing list