commit | 8f355e5cee63c2c0c145d8206c4245d0189f47ff | [log] [tgz] |
---|---|---|
author | Edward Cree <ecree@solarflare.com> | Tue Feb 25 13:17:59 2014 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Feb 26 15:22:02 2014 -0500 |
tree | c26bdef2e3dabe83e777bd34d7facff3786f43c3 | |
parent | 9a9bfd032f0207dd6e63c84b7676b58f160af04b [diff] |
sfc: check for NULL efx->ptp_data in efx_ptp_event If we receive a PTP event from the NIC when we haven't set up PTP state in the driver, we attempt to read through a NULL pointer efx->ptp_data, triggering a panic. Signed-off-by: Edward Cree <ecree@solarflare.com> Acked-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>