Skip to content

Commit

Permalink
netiucv: improve state checking in conn_action_txdone
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Frank Blaschka <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
braunu authored and davem330 committed Dec 17, 2013
1 parent d207cf4 commit d239ae3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/s390/net/netiucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,12 @@ static void conn_action_txdone(fsm_instance *fi, int event, void *arg)

IUCV_DBF_TEXT(trace, 4, __func__);

if (conn && conn->netdev)
privptr = netdev_priv(conn->netdev);
if (!conn || !conn->netdev) {
IUCV_DBF_TEXT(data, 2,
"Send confirmation for unlinked connection\n");
return;
}
privptr = netdev_priv(conn->netdev);
conn->prof.tx_pending--;
if (single_flag) {
if ((skb = skb_dequeue(&conn->commit_queue))) {
Expand Down

0 comments on commit d239ae3

Please sign in to comment.