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
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
2 matches
Mail list logo