]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: L2CAP: uninitialized variables in l2cap_sock_setsockopt()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 Jan 2022 07:16:44 +0000 (10:16 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 7 Jan 2022 07:40:11 +0000 (08:40 +0100)
commit78adc850632a032c143d25f15e029f880642345d
treea4fb8ca59cf7e5f1222bf11ba58f667c16a32c46
parent80427d0c4a8f4ef90d309d005a05399ed21b88da
Bluetooth: L2CAP: uninitialized variables in l2cap_sock_setsockopt()

The "opt" variable is a u32, but on some paths only the top bytes
were initialized and the others contained random stack data.

Fixes: cf0058199c0b ("net: pass a sockptr_t into ->setsockopt")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_sock.c