diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2017-07-13 15:06:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-14 17:18:51 +0200 |
commit | 40fbbce007cb458da4c15cbf53beacf6b755cedc (patch) | |
tree | 8da76ad10249fd6156c9f85f580c59f4b0ee69fb /net/bridge/br_input.c | |
parent | net: hns: add acpi function of xge led control (diff) | |
download | linux-40fbbce007cb458da4c15cbf53beacf6b755cedc.tar.xz linux-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 'net/bridge/br_input.c')
0 files changed, 0 insertions, 0 deletions