Skip to content

Commit bb2a081

Browse files
committed
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
Johan Hedberg says: ==================== pull request: bluetooth-next 2018-08-13 There was one pretty bad bug that slipped into the MediaTek HCI driver in the last bluetooth-next pull request. Would it be possible to get this one-liner fix pulled to net-next before you make your first 4.19 pull request for Linus? Thanks. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents c1617fb + 330ad75 commit bb2a081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bluetooth/btmtkuart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static int btmtkuart_recv(struct hci_dev *hdev, const u8 *data, size_t count)
346346

347347
bdev->rx_skb = h4_recv_buf(bdev->hdev, bdev->rx_skb, p_h4,
348348
sz_h4, mtk_recv_pkts,
349-
sizeof(mtk_recv_pkts));
349+
ARRAY_SIZE(mtk_recv_pkts));
350350
if (IS_ERR(bdev->rx_skb)) {
351351
err = PTR_ERR(bdev->rx_skb);
352352
bt_dev_err(bdev->hdev,

0 commit comments

Comments
 (0)