Philipp Zabel
81f35ffde0
net: fec: ptp: fix NULL pointer dereference if ptp_clock is not set
...
Since commit 278d24047891 (net: fec: ptp: Enable PPS output based on ptp clock)
fec_enet_interrupt calls fec_ptp_check_pps_event unconditionally, which calls
into ptp_clock_event. If fep->ptp_clock is NULL, ptp_clock_event tries to
dereference the NULL pointer.
Since on i.MX53 fep->bufdesc_ex is not set, fec_ptp_init is never called,
and fep->ptp_clock is NULL, which reliably causes a kernel panic.
This patch adds a check for fep->ptp_clock == NULL in fec_enet_interrupt.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-10-22 17:48:06 -04:00
..
2014-10-11 11:34:07 -07:00
2014-09-30 01:16:44 +02:00
2014-10-18 18:11:04 -07:00
2014-10-17 11:55:32 -04:00
2014-10-15 07:23:49 +02:00
2014-10-09 14:58:15 -04:00
2014-10-18 12:12:45 -07:00
2014-10-13 11:28:42 +02:00
2014-10-08 17:37:16 -04:00
2014-10-18 10:25:09 -07:00
2014-10-15 07:05:03 +02:00
2014-10-15 07:48:18 +02:00
2014-10-15 07:05:03 +02:00
2014-10-15 07:48:18 +02:00
2014-10-14 10:51:23 +02:00
2014-09-29 20:22:36 +09:00
2014-10-18 18:11:04 -07:00
2014-10-09 02:39:07 -04:00
2014-10-10 22:07:55 -04:00
2014-09-22 16:48:47 +09:00
2014-10-09 22:26:00 -04:00
2014-10-09 14:58:15 -04:00
2014-10-14 09:39:08 +02:00
2014-10-09 14:58:15 -04:00
2014-09-23 23:31:22 -07:00
2014-10-03 08:19:02 -07:00
2014-10-19 12:50:44 -07:00
2014-10-18 12:12:45 -07:00
2014-09-26 08:15:27 +01:00
2014-10-19 12:29:23 -07:00
2014-10-19 12:40:24 -07:00
2014-10-15 07:23:49 +02:00
2014-09-23 23:26:42 -07:00
2014-10-15 07:48:18 +02:00
2014-10-14 15:05:35 -04:00
2014-10-10 16:40:14 -04:00
2014-09-25 23:14:37 +10:00
2014-10-18 12:25:30 -07:00
2014-10-18 18:11:04 -07:00
2014-10-14 02:18:22 +02:00
2014-10-07 21:29:18 -04:00
2014-10-15 06:58:16 +02:00
2014-10-18 18:11:04 -07:00
2014-10-18 12:12:45 -07:00
2014-10-18 18:11:04 -07:00
2014-10-22 17:48:06 -04:00
2014-10-07 14:48:29 -04:00
2014-10-17 07:08:51 -04:00
2014-10-11 06:47:50 -04:00
2014-10-13 16:23:15 +02:00
2014-09-23 23:14:28 -07:00
2014-10-11 20:29:01 -04:00
2014-09-24 15:18:34 +05:30
2014-10-09 14:58:15 -04:00
2014-10-14 02:18:25 +02:00
2014-10-14 02:18:25 +02:00
2014-10-15 06:56:23 +02:00
2014-10-15 06:56:23 +02:00
2014-10-14 02:18:19 +02:00
2014-10-18 12:12:45 -07:00
2014-10-18 12:12:45 -07:00
2014-10-08 17:37:16 -04:00
2014-10-18 18:11:04 -07:00
2014-10-09 14:58:15 -04:00
2014-10-14 09:39:08 +02:00
2014-10-18 11:53:51 -07:00
2014-10-14 02:18:25 +02:00
2014-10-18 18:11:04 -07:00
2014-10-13 11:28:42 +02:00
2014-09-23 22:05:26 -07:00
2014-10-15 07:23:49 +02:00
2014-10-18 18:11:04 -07:00
2014-10-18 10:25:09 -07:00
2014-10-10 16:40:14 -04:00
2014-10-11 20:29:01 -04:00
2014-09-24 09:49:14 -04:00