]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:34 +0000 (07:12 +0200)
commit1eda8f9395272222f15e8044180df203f71a5451
tree6b13e9ec82a48419bcb6750fce0fbeeb3eb73059
parent97c1c1d9b74bdee3ec22b1bc9c4cdff171053a42
Bluetooth: mgmt: Fix the command returns garbage parameter value

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>
net/bluetooth/mgmt.c