]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ptp_qoriq: fix NULL access if ptp dt node missing
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Thu, 9 May 2019 03:07:12 +0000 (03:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 16:19:26 +0000 (09:19 -0700)
commit7f4399ba405b6201fb318b43091703a34b1489ab
tree9a9edb45a2ca9fcc0431f98f07f2ee7b86f5cebf
parent5f05836831f6142081e216f27e1ae8f4b26d3585
ptp_qoriq: fix NULL access if ptp dt node missing

Make sure ptp dt node exists before accessing it in case
of NULL pointer call trace.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_qoriq.c