HomeFreeBSD

LinuxKPI: skbuff: fix skb_queue_splice_init()

Description

LinuxKPI: skbuff: fix skb_queue_splice_init()

In skb_queue_splice_init() we set a next value and then used that new
value to further update the remaining linking rather than the original
value. Introduce another temporary variable 'n' to hold the original
value and use that.
While here rename q and h to from and to as otherwise it was too
confusing to read.

Also initialize skb->prev and skb->next to point to skb itself if
for nothing else at least to aid debugging.

Approved by: re (gjb)
Reported by: phk (panic in iwl_txq_reclaim)
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 6a8973c3324c0c6c270ae4ad371e50c0ec5761da)
(cherry picked from commit 32d1d7fee61328e65ae944836d1027335ccb979c)

Details

Provenance
bzAuthored on Mar 23 2022, 5:05 PM
Parents
rG63ec5947474a: LinuxKPI: allow bsddriver name to be set for PCI
Branches
Unknown
Tags
Unknown