From f240e34e039b20bdfd06d24a129a458fd1dc6e21 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:52 +0100 Subject: [PATCH] Revert "Bluetooth: bnep: Fix out-of-bound access" This reverts commit db39518d11d85ea3710bb59252bfab7f7a00c62c. --- net/bluetooth/bnep/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index 0eaa47ae6..0dd106d72 100755 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c @@ -385,8 +385,7 @@ static int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb) case BNEP_COMPRESSED_DST_ONLY: __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); - __skb_put_data(nskb, s->eh.h_source, ETH_ALEN); - put_unaligned(s->eh.h_proto, (__be16 *)__skb_put(nskb, 2)); + __skb_put_data(nskb, s->eh.h_source, ETH_ALEN + 2); break; case BNEP_GENERAL: