Revert "Bluetooth: bnep: Fix out-of-bound access"

This reverts commit db39518d11.
This commit is contained in:
Ksawlii 2024-11-24 00:23:52 +01:00
parent 0eeaf7577a
commit f240e34e03

View file

@ -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: