]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hciuart: Fix to use boolean flag with u32 type
authorBen YoungTae Kim <ytkim@qca.qualcomm.com>
Fri, 14 Aug 2015 05:09:42 +0000 (22:09 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 14 Aug 2015 06:55:31 +0000 (08:55 +0200)
commitdfb82805afcf1b45efa432f80042c47ae0d9a930
tree0e153e0f68c8daa473e00a50e080ee9f39bae909
parent0c8688f301f2739b6928816c888ea68d48f2d816
Bluetooth: hciuart: Fix to use boolean flag with u32 type

debugfs_create_bool is asking to put u32 type pointer instead of bool
so that passing bool type with u32* cast will cause memory corruption
to read that value since it is handled by 4 bytes instead of 1 byte
inside.

Signed-off-by: Ben Young Tae Kim <ytkim@qca.qualcomm.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c