OSDN Git Service

Bluetooth: mediatek: pass correct size to h4_recv_buf()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 Aug 2018 09:32:35 +0000 (12:32 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Aug 2018 13:59:39 +0000 (15:59 +0200)
commit330ad75f6a79d46f11f7bf8937852ebb4673b1d5
treef5b2940a264f053a97886256db70217026f78840
parenta487711aac3b720b4a3a63d737604f47cd8dc36c
Bluetooth: mediatek: pass correct size to h4_recv_buf()

We're supposed to pass the number of elements in the mtk_recv_pkts, not
the number of bytes.

Fixes: 7237c4c9ec92 ("Bluetooth: mediatek: Add protocol support for MediaTek serial devices")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtkuart.c