Thread (2 messages) flat view 2 messages, 2 authors, 2021-11-16

Re: [PATCH v2] Bluetooth: hci_h4: Fix padding calculation error within h4_recv_buf()

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2021-11-16 13:54:58
Also in: linux-arm-msm, lkml

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 <redacted>
---
drivers/bluetooth/hci_h4.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
patch has been applied to bluetooth-next tree.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help