diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2017-07-13 18:36:50 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-14 08:18:51 -0700 |
commit | 40fbbce007cb458da4c15cbf53beacf6b755cedc (patch) | |
tree | 8da76ad10249fd6156c9f85f580c59f4b0ee69fb /net | |
parent | 1e4babee70a2e2d8f9e0da06f013563b0e26f654 (diff) | |
download | linux-40fbbce007cb458da4c15cbf53beacf6b755cedc.tar.bz2 |
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 'net')
0 files changed, 0 insertions, 0 deletions