Bluetooth: mgmt: Fix the command returns garbage parameter value
authorTedd Ho-Jeong An <tedd.an@intel.com>
Wed, 26 May 2021 17:36:22 +0000 (10:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:54 +0000 (09:44 +0200)
commit8d7a3989c14de6a2cac975d85c0ec79df0eacccd
treef92de822fc92629b0cb949e19c9684778c9f1c6d
parent05298f1733c6fc5d05b05113e20ee373076edd99
Bluetooth: mgmt: Fix the command returns garbage parameter value

[ Upstream commit 02ce2c2c24024aade65a8d91d6a596651eaf2d0a ]

When the Get Device Flags command fails, it returns the error status
with the parameters filled with the garbage values. Although the
parameters are not used, it is better to fill with zero than the random
values.

Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/mgmt.c