Skip to content

Commit d239ae3

Browse files
braunudavem330
authored andcommitted
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>
1 parent d207cf4 commit d239ae3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/s390/net/netiucv.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,12 @@ static void conn_action_txdone(fsm_instance *fi, int event, void *arg)
739739

740740
IUCV_DBF_TEXT(trace, 4, __func__);
741741

742-
if (conn && conn->netdev)
743-
privptr = netdev_priv(conn->netdev);
742+
if (!conn || !conn->netdev) {
743+
IUCV_DBF_TEXT(data, 2,
744+
"Send confirmation for unlinked connection\n");
745+
return;
746+
}
747+
privptr = netdev_priv(conn->netdev);
744748
conn->prof.tx_pending--;
745749
if (single_flag) {
746750
if ((skb = skb_dequeue(&conn->commit_queue))) {

0 commit comments

Comments
 (0)