Re: [PATCH V1 12/15] spmi-pmic-arb: fix a possible null pointer dereference

2017-06-02 Thread kgunda
On 2017-05-31 22:59, Stephen Boyd wrote: On 05/30, Kiran Gunda wrote: diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 2afe359..412481d 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -1003,6 +1003,12 @@ static int

Re: [PATCH V1 12/15] spmi-pmic-arb: fix a possible null pointer dereference

2017-06-02 Thread kgunda
On 2017-05-31 22:59, Stephen Boyd wrote: On 05/30, Kiran Gunda wrote: diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 2afe359..412481d 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -1003,6 +1003,12 @@ static int

Re: [PATCH V1 12/15] spmi-pmic-arb: fix a possible null pointer dereference

2017-05-31 Thread Stephen Boyd
On 05/30, Kiran Gunda wrote: > diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c > index 2afe359..412481d 100644 > --- a/drivers/spmi/spmi-pmic-arb.c > +++ b/drivers/spmi/spmi-pmic-arb.c > @@ -1003,6 +1003,12 @@ static int spmi_pmic_arb_probe(struct platform_device > *pdev)

Re: [PATCH V1 12/15] spmi-pmic-arb: fix a possible null pointer dereference

2017-05-31 Thread Stephen Boyd
On 05/30, Kiran Gunda wrote: > diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c > index 2afe359..412481d 100644 > --- a/drivers/spmi/spmi-pmic-arb.c > +++ b/drivers/spmi/spmi-pmic-arb.c > @@ -1003,6 +1003,12 @@ static int spmi_pmic_arb_probe(struct platform_device > *pdev)

[PATCH V1 12/15] spmi-pmic-arb: fix a possible null pointer dereference

2017-05-30 Thread Kiran Gunda
From: Abhijeet Dharmapurikar If "core" memory resource is not specified, the driver could end up dereferencing a null pointer. Fix this by returning -EINVAL when core resource is missing. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by:

[PATCH V1 12/15] spmi-pmic-arb: fix a possible null pointer dereference

2017-05-30 Thread Kiran Gunda
From: Abhijeet Dharmapurikar If "core" memory resource is not specified, the driver could end up dereferencing a null pointer. Fix this by returning -EINVAL when core resource is missing. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 6