diff options
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 940fc20b2b50..020562164b56 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -1034,9 +1034,10 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg) | |||
1034 | goto out_xmit; | 1034 | goto out_xmit; |
1035 | packet_increment_head(&po->tx_ring); | 1035 | packet_increment_head(&po->tx_ring); |
1036 | len_sum += tp_len; | 1036 | len_sum += tp_len; |
1037 | } while (likely((ph != NULL) || ((!(msg->msg_flags & MSG_DONTWAIT)) | 1037 | } while (likely((ph != NULL) || |
1038 | && (atomic_read(&po->tx_ring.pending)))) | 1038 | ((!(msg->msg_flags & MSG_DONTWAIT)) && |
1039 | ); | 1039 | (atomic_read(&po->tx_ring.pending)))) |
1040 | ); | ||
1040 | 1041 | ||
1041 | err = len_sum; | 1042 | err = len_sum; |
1042 | goto out_put; | 1043 | goto out_put; |