History

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

Linus Torvalds committed 4 years ago

Commit 95aa17c2 parents 3356313 20314ba1 file · +1 −1Browse files

Unified · Split

drivers/staging/r8188eu/core/rtw_br_ext.c+1−1
@@ -70,7 +70,7 @@ static int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag) · 69 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t