Re: [PATCH] soc: qcom: geni: Fix NULL pointer dereference

2020-07-20 Thread Bjorn Andersson
On Fri 17 Jul 07:32 PDT 2020, Akash Asthana wrote: > pdev struct doesn't exits for the devices whose status are disabled > from DT node, in such cases NULL is returned from 'of_find_device_by_node' > Later when we try to get drvdata from pdev struct NULL pointer dereference > is triggered. > >

Re: [PATCH] soc: qcom: geni: Fix NULL pointer dereference

2020-07-20 Thread Akash Asthana
Hi Matthias, On 7/17/2020 8:18 PM, Matthias Kaehlcke wrote: Please make sure to cc the linux-arm-msm@vger list for patches of Qualcomm code. Sure. On Fri, Jul 17, 2020 at 08:02:22PM +0530, Akash Asthana wrote: pdev struct doesn't exits for the devices whose status are disabled

Re: [PATCH] soc: qcom: geni: Fix NULL pointer dereference

2020-07-17 Thread Matthias Kaehlcke
Please make sure to cc the linux-arm-msm@vger list for patches of Qualcomm code. On Fri, Jul 17, 2020 at 08:02:22PM +0530, Akash Asthana wrote: > pdev struct doesn't exits for the devices whose status are disabled s/exits/exist/ > from DT node, in such cases NULL is returned from

[PATCH] soc: qcom: geni: Fix NULL pointer dereference

2020-07-17 Thread Akash Asthana
pdev struct doesn't exits for the devices whose status are disabled from DT node, in such cases NULL is returned from 'of_find_device_by_node' Later when we try to get drvdata from pdev struct NULL pointer dereference is triggered. Add a NULL check for return values to fix the issue. We were