33 lines
905 B
Diff
33 lines
905 B
Diff
From 9b6f5c8b8a20d9c554ee0810be011c1c074adaf6 Mon Sep 17 00:00:00 2001
|
|
From: Jens Osterkamp <jens@linux.vnet.ibm.com>
|
|
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 <jens@linux.vnet.ibm.com>
|
|
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
|
|
Signed-off-by: Petr Sabata <psabata@redhat.com>
|
|
---
|
|
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
|
|
|