Pull staging driver fix from Greg KH: "Here is a single staging driver fix for 5.18-rc2 that resolves an endian issue for the r8188eu driver. It has been in linux-next all this week with no reported problems" * tag 'staging-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: staging: r8188eu: Fix PPPoE tag insertion on little endian systems
Unified · Split
| @@ -70,7 +70,7 @@ static int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag) · 69 unmodified lines | |||
| 70 | struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN); | 70 | struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN); |
| 71 | int data_len; | 71 | int data_len; |
| 72 | 72 | ||
| 73 | data_len = tag->tag_len + TAG_HDR_LEN; | 73 | data_len = be16_to_cpu(tag->tag_len) + TAG_HDR_LEN; |
| 74 | if (skb_tailroom(skb) < data_len) | 74 | if (skb_tailroom(skb) < data_len) |
| 75 | return -1; | 75 | return -1; |
| 76 | 76 | ||