From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: [PATCH v1] Bluetooth: hciuart: Fix to use boolean flag with u32 type From: Marcel Holtmann In-Reply-To: <55CD7816.8090305@qualcomm.com> Date: Thu, 13 Aug 2015 23:56:24 -0700 Cc: linux-bluetooth@vger.kernel.org Message-Id: References: <55CD7816.8090305@qualcomm.com> To: Ben YoungTae Kim Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Ben, > 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 > --- > drivers/bluetooth/hci_qca.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel