summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing
diff options
context:
space:
mode:
authorGanesh Goudar <ganeshgr@chelsio.com>2017-07-13 18:36:50 +0530
committerDavid S. Miller <davem@davemloft.net>2017-07-14 08:18:51 -0700
commit40fbbce007cb458da4c15cbf53beacf6b755cedc (patch)
tree8da76ad10249fd6156c9f85f580c59f4b0ee69fb /drivers/hwtracing
parent1e4babee70a2e2d8f9e0da06f013563b0e26f654 (diff)
downloadlinux-stable-40fbbce007cb458da4c15cbf53beacf6b755cedc.tar.gz
linux-stable-40fbbce007cb458da4c15cbf53beacf6b755cedc.tar.bz2
linux-stable-40fbbce007cb458da4c15cbf53beacf6b755cedc.zip
cxgb4: ptp_clock_register() returns error pointers
Check ptp_clock_register() return not only for NULL but also for error pointers, and also nullify adapter->ptp_clock if ptp_clock_register() fails. Fixes: 9c33e4208bce ("cxgb4: Add PTP Hardware Clock (PHC) support") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Richard Cochran <richardcochran@gmail.com> Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hwtracing')
0 files changed, 0 insertions, 0 deletions