diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-10 22:04:30 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-10 22:04:30 +0200 |
commit | 95aa17c36dc89bf008753217ed27f8a8eb5faf79 (patch) | |
tree | 196b6e4d304634f891c95ba0f4a556e0adf8d309 /drivers | |
parent | Merge tag 'driver-core-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
parent | staging: r8188eu: Fix PPPoE tag insertion on little endian systems (diff) | |
download | linux-95aa17c36dc89bf008753217ed27f8a8eb5faf79.tar.xz linux-95aa17c36dc89bf008753217ed27f8a8eb5faf79.zip |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/r8188eu/core/rtw_br_ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_br_ext.c b/drivers/staging/r8188eu/core/rtw_br_ext.c index d68611ef22f8..f056204c0fdb 100644 --- a/drivers/staging/r8188eu/core/rtw_br_ext.c +++ b/drivers/staging/r8188eu/core/rtw_br_ext.c @@ -70,7 +70,7 @@ static int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag) struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN); int data_len; - data_len = tag->tag_len + TAG_HDR_LEN; + data_len = be16_to_cpu(tag->tag_len) + TAG_HDR_LEN; if (skb_tailroom(skb) < data_len) return -1; |