]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Fix application of sizeof to pointer
authorDavid Yang <davidcomponentone@gmail.com>
Wed, 13 Oct 2021 00:56:33 +0000 (08:56 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 13 Oct 2021 06:36:51 +0000 (08:36 +0200)
commitb0360e4f9f3345151dd2840c2f5b2f0cc1ac5c43
tree3458850e4c66a5e5794b1b745204bc3261c8e9d6
parentd2e738c7b10fd8a10475b89e5cf70ade9c0b3abb
Bluetooth: btusb: Fix application of sizeof to pointer

The coccinelle check report:
"./drivers/bluetooth/btusb.c:2239:36-42:
ERROR: application of sizeof to pointer".
Using the real size to fix it.

Fixes: 8bce9de84a4f4 ("Bluetooth: btusb: Support public address configuration for MediaTek Chip.")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: David Yang <davidcomponentone@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c