Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb776481 authored by Loic Poulain's avatar Loic Poulain Committed by Johan Hedberg
Browse files

Bluetooth: hci_uart: Fix uninitialized alignment value



Force alignment value to the default one (1 byte) if uninitialized.
This fixes hci_ll serdev driver (alignment = 0) and avoid any further
issues with upcoming drivers.

Signed-off-by: default avatarLoic Poulain <loic.poulain@gmail.com>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent c3327bde
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ struct sk_buff *h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb,
			    const struct h4_recv_pkt *pkts, int pkts_count)
{
	struct hci_uart *hu = hci_get_drvdata(hdev);
	u8 alignment = hu->alignment;
	u8 alignment = hu->alignment ? hu->alignment : 1;

	while (count) {
		int i, len;