Commit d239ae33 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller

netiucv: improve state checking in conn_action_txdone

state checking in conn_action_txdone() is inconsistent.
This patch makes it consistent and issues a trace message
if an unexpected state is detected for the netiucv device.
Signed-off-by: default avatarUrsula Braun <ursula.braun@de.ibm.com>
Signed-off-by: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d207cf4c
...@@ -739,8 +739,12 @@ static void conn_action_txdone(fsm_instance *fi, int event, void *arg) ...@@ -739,8 +739,12 @@ static void conn_action_txdone(fsm_instance *fi, int event, void *arg)
IUCV_DBF_TEXT(trace, 4, __func__); IUCV_DBF_TEXT(trace, 4, __func__);
if (conn && conn->netdev) if (!conn || !conn->netdev) {
privptr = netdev_priv(conn->netdev); IUCV_DBF_TEXT(data, 2,
"Send confirmation for unlinked connection\n");
return;
}
privptr = netdev_priv(conn->netdev);
conn->prof.tx_pending--; conn->prof.tx_pending--;
if (single_flag) { if (single_flag) {
if ((skb = skb_dequeue(&conn->commit_queue))) { if ((skb = skb_dequeue(&conn->commit_queue))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment