Commit ad072b28 authored by Jody McIntyre's avatar Jody McIntyre

Sets the sendtime of a packet _before_ adding it to pending_packet_queue,
to prevent premature expiry (which leads to "unsolicited response packet"
errors, among other things).
Signed-off-by: default avatarJody McIntyre <scjody@modernduck.com>
parent 20cd7809
...@@ -514,6 +514,7 @@ int hpsb_send_packet(struct hpsb_packet *packet) ...@@ -514,6 +514,7 @@ int hpsb_send_packet(struct hpsb_packet *packet)
if (!packet->no_waiter || packet->expect_response) { if (!packet->no_waiter || packet->expect_response) {
atomic_inc(&packet->refcnt); atomic_inc(&packet->refcnt);
packet->sendtime = jiffies;
skb_queue_tail(&host->pending_packet_queue, packet->skb); skb_queue_tail(&host->pending_packet_queue, packet->skb);
} }
......
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