Repository navigation
Commit be8b678
cxgb3: Correct comparisons and calculations using skb->tail and skb-transport_header
This corrects an regression introduced by "net: Use 16bits for *_headers
fields of struct skbuff" when NET_SKBUFF_DATA_USES_OFFSET is not set. In
that case skb->tail will be a pointer whereas skb->transport_header
will be an offset from head. This is corrected by using wrappers that
ensure that comparisons and calculations are always made using pointers.
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 25b6e14 commit be8b678
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
| 1587 | + | |
| 1588 | + | |
1590 | 1589 | | |
1591 | 1590 | | |
1592 | 1591 | | |
| |||
1647 | 1646 | | |
1648 | 1647 | | |
1649 | 1648 | | |
1650 | | - | |
1651 | | - | |
| 1649 | + | |
| 1650 | + | |
1652 | 1651 | | |
1653 | 1652 | | |
1654 | 1653 | | |
| |||
1674 | 1673 | | |
1675 | 1674 | | |
1676 | 1675 | | |
1677 | | - | |
| 1676 | + | |
1678 | 1677 | | |
1679 | 1678 | | |
1680 | 1679 | | |
| |||
0 commit comments