]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: use memset avoid memory leaks
authorMinghao Chi (CGEL ZTE) <chi.minghao@zte.com.cn>
Fri, 25 Feb 2022 07:41:52 +0000 (07:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:03:05 +0000 (20:03 +0200)
commite9e55acee9b7a737ec7f5161b94a78932a5514c8
tree8017aeaac76fd013c6efbd2d4b96ca834f3a8442
parent4e3cb30e2b2dc971112153bd290b53786d480a09
Bluetooth: use memset avoid memory leaks

[ Upstream commit d3715b2333e9a21692ba16ef8645eda584a9515d ]

Use memset to initialize structs to prevent memory leaks
in l2cap_ecred_connect

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi (CGEL ZTE) <chi.minghao@zte.com.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/l2cap_core.c