Re: [PATCH] Bluetooth: Fix broken usage of put_unaligned_le16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marcel,

On Sun, Mar 11, 2012 at 10:43 PM, Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote:
> @@ -275,7 +275,7 @@ static int read_version(struct sock *sk, struct hci_dev *hdev, void *data,
>        BT_DBG("sock %p", sk);
>
>        rp.version = MGMT_VERSION;
> -       put_unaligned_le16(MGMT_REVISION, &rp.revision);
> +       rp.revision = __constant_cpu_to_le16(MGMT_VERSION);

Looks like a typo here: MGMT_VERSION -> MGMT_REVISION

>
>        return cmd_complete(sk, MGMT_INDEX_NONE, MGMT_OP_READ_VERSION, 0, &rp,
>                            sizeof(rp));

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux