aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net
diff options
context:
space:
mode:
authorUrsula Braun <ursula.braun@de.ibm.com>2013-12-16 03:44:51 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-17 17:17:13 -0500
commitd239ae339e0740d2405f4d8a4d482dbe7b001c69 (patch)
treed1e394c219b36ddc9e4cd504d522fbdf8fef6bd7 /drivers/s390/net
parentd207cf4c1ad27c6f8881857ca301f8489826116d (diff)
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: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r--drivers/s390/net/netiucv.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c
index 9b333fcf1a4c..ce16d1bdb20a 100644
--- a/drivers/s390/net/netiucv.c
+++ b/drivers/s390/net/netiucv.c
@@ -739,8 +739,12 @@ static void conn_action_txdone(fsm_instance *fi, int event, void *arg)
739 739
740 IUCV_DBF_TEXT(trace, 4, __func__); 740 IUCV_DBF_TEXT(trace, 4, __func__);
741 741
742 if (conn && conn->netdev) 742 if (!conn || !conn->netdev) {
743 privptr = netdev_priv(conn->netdev); 743 IUCV_DBF_TEXT(data, 2,
744 "Send confirmation for unlinked connection\n");
745 return;
746 }
747 privptr = netdev_priv(conn->netdev);
744 conn->prof.tx_pending--; 748 conn->prof.tx_pending--;
745 if (single_flag) { 749 if (single_flag) {
746 if ((skb = skb_dequeue(&conn->commit_queue))) { 750 if ((skb = skb_dequeue(&conn->commit_queue))) {