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)
commit2b70d4f9b20635ac328836e50d183632e1930f94
treea4fb8ca59cf7e5f1222bf11ba58f667c16a32c46
parent4fac8a7ac80b18068fce4feb2376e41c48d67c31
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: a7b75c5a8c41 ("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