From 9b6f5c8b8a20d9c554ee0810be011c1c074adaf6 Mon Sep 17 00:00:00 2001 From: Jens Osterkamp Date: Sun, 6 Mar 2011 21:37:55 -0800 Subject: [PATCH 12/51] fix potential crash after link up In case the interface goes down e.g. through a link down by the switch the ECP rx state machine has to be reset to IDLE, otherwise it might crash. Signed-off-by: Jens Osterkamp Signed-off-by: John Fastabend Signed-off-by: Petr Sabata --- ecp/ecp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ecp/ecp.c b/ecp/ecp.c index 1f46664..3f64292 100644 --- a/ecp/ecp.c +++ b/ecp/ecp.c @@ -71,8 +71,8 @@ int ecp_init(char *ifname) goto fail; } - vd->ecp.ackTimerExpired = true; ecp_tx_run_sm(vd); + ecp_rx_change_state(vd, ECP_RX_IDLE); ecp_rx_run_sm(vd); return 0; -- 1.7.4.4