Revert "Bluetooth: bnep: Fix out-of-bound access"
This reverts commit db39518d11
.
This commit is contained in:
parent
0eeaf7577a
commit
f240e34e03
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue