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)
commit10be6c0f27d729dcebaa0ac5f168009244d71fed
tree0e153e0f68c8daa473e00a50e080ee9f39bae909
parent50d78bcf5d06871a0b3adcb3cbec6e6ca33f226a
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