]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_sock: fix endian bug in hci_sock_setsockopt()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 Jan 2022 07:17:27 +0000 (10:17 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 7 Jan 2022 07:41:38 +0000 (08:41 +0100)
commit5695f66317ce07175647e779d6f31066e6d5109d
tree9b028292f6e2360e90655340a475c896589b587f
parent78adc850632a032c143d25f15e029f880642345d
Bluetooth: hci_sock: fix endian bug in hci_sock_setsockopt()

This copies a u16 into the high bits of an int, which works on a big
endian system but not on a little endian system.

Fixes: 0d7587bfb3c0 ("Bluetooth: hci_sock: Add support for BT_{SND,RCV}BUF")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sock.c