Messages in this thread | | | Subject | Re: [PATCH v2] Bluetooth: hci_h4: Fix padding calculation error within h4_recv_buf() | From | Marcel Holtmann <> | Date | Tue, 16 Nov 2021 14:54:24 +0100 |
| |
Hi Zijun,
> it is erroneous to calculate padding by subtracting length of type > indication from skb->len, it will cause data analysis error for > alignment which is greater than 1, so fixed by adding length of type > indication with skb->len. > > Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> > --- > drivers/bluetooth/hci_h4.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
| |