ACK: [SRU OEM-B][PATCH] UBUNTU: SAUCE: Bluetooth: btrsi: fix l2test data transfer issue

Shrirang Bagul shrirang.bagul at canonical.com
Tue Jul 24 07:29:55 UTC 2018


On Mon, 2018-07-16 at 16:01 +0530, Siva Rebbagondla wrote:
> From: Siva Rebbagondla <siva.rebbagondla at redpinesignals.com>
> 
> BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1781895
>  
> Observed bluetooth l2test is getting failed as skb->data is having some
> extra bytes rather than expected size, which is Incorrect. Hence, removed
> redundant bytes from skb using skb_trim().
> 
> Signed-off-by: Siva Rebbagondla <siva.rebbagondla at redpinesignals.com>
Acked-by: Shrirang Bagul <shrirang.bagul at canonical.com>
> ---
>  drivers/bluetooth/btrsi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/bluetooth/btrsi.c b/drivers/bluetooth/btrsi.c
> index 3ef62b9..866b232 100644
> --- a/drivers/bluetooth/btrsi.c
> +++ b/drivers/bluetooth/btrsi.c
> @@ -83,6 +83,7 @@ static int rsi_hci_send_pkt(struct hci_dev *hdev, struct sk_buff *skb)
>  			skb_pull(skb, PTR_ALIGN(skb->data,
>  				RSI_SDIO_DMA_ALIGN) - skb->data);
>  			memmove(skb->data, skb_data, skb_len);
> +			skb_trim(skb, skb_len);
>  		}
>  	}
>  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20180724/3f01458b/attachment.sig>


More information about the kernel-team mailing list