diff options
| author | Ganesh Goudar <[email protected]> | 2017-07-13 18:36:50 +0530 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-07-14 08:18:51 -0700 |
| commit | 40fbbce007cb458da4c15cbf53beacf6b755cedc (patch) | |
| tree | 8da76ad10249fd6156c9f85f580c59f4b0ee69fb /net/lapb/lapb_in.c | |
| parent | 1e4babee70a2e2d8f9e0da06f013563b0e26f654 (diff) | |
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 <[email protected]>
Cc: Richard Cochran <[email protected]>
Signed-off-by: Ganesh Goudar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions