mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
Bluetooth: hci_conn: Use kmemdup() to replace kzalloc + memcpy
[ Upstream commit5b6d345d1b] Use kmemdup rather than duplicating its implementation. ./net/bluetooth/hci_conn.c:1880:7-14: WARNING opportunity for kmemdup. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5597 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Stable-dep-of:a091289218("Bluetooth: hci_conn: Fix hci_le_set_cig_params") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2567562445
commit
f550c6973e
1 changed files with 1 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue