Skip to content

Commit 95aa17c

Browse files
committed
Merge tag 'staging-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
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
2 parents 3356313 + 20314ba commit 95aa17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/r8188eu/core/rtw_br_ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag)
7070
struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN);
7171
int data_len;
7272

73-
data_len = tag->tag_len + TAG_HDR_LEN;
73+
data_len = be16_to_cpu(tag->tag_len) + TAG_HDR_LEN;
7474
if (skb_tailroom(skb) < data_len)
7575
return -1;
7676

0 commit comments

Comments
 (0)