Re: [v2 1/7] soc: qcom: llcc-slice: Add error checks for API functions

2018-11-15 Thread Andy Gross
On Fri, Oct 05, 2018 at 06:38:29PM +0530, Sharat Masetty wrote: > From: Jordan Crouse > > 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

[v2 1/7] soc: qcom: llcc-slice: Add error checks for API functions

2018-10-05 Thread Sharat Masetty
From: Jordan Crouse 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