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

2020-07-20 Thread Sai Prakash Ranjan
On 2020-07-20 15:06, Akash Asthana wrote: pdev struct doesn't exists 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 f

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

2020-07-20 Thread Akash Asthana
pdev struct doesn't exists 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 hit