summaryrefslogtreecommitdiff
path: root/net/bluetooth/msft.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-07-29 02:50:48 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-08-09 03:04:24 +0300
commit0eee4995f40573f65ed67cea4d20fcf389d353de (patch)
treeccb1821a701654c138e3e8e21cf82b7d178c35fc /net/bluetooth/msft.c
parent10b9adb556508a299dc283b7c746b811f6918987 (diff)
downloadlinux-0eee4995f40573f65ed67cea4d20fcf389d353de.tar.xz
Bluetooth: ISO: Fix info leak in iso_sock_getsockopt()
The C standard rules for when struct holes are zeroed out are slightly weird. The existing assignments might initialize everything, but GCC is allowed to (and does sometimes) leave the struct holes uninitialized, so instead of using yet another variable and copy the QoS settings just use a pointer to the stored QoS settings. Fixes: ccf74f2390d60 ("Bluetooth: Add BTPROTO_ISO socket type") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/msft.c')
0 files changed, 0 insertions, 0 deletions