Bug 2406 - ./net/bluetooth/hci_conn.c:2038:6-13: WARNING: kzalloc should be used for cp, instead of kmalloc/memset
Summary: ./net/bluetooth/hci_conn.c:2038:6-13: WARNING: kzalloc should be used for cp,...
Status: RESOLVED FIXED
Alias: None
Product: Upstream
Classification: Unclassified
Component: net (show other bugs) net
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: abaci-robot
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-17 10:50 UTC by abaci-robot
Modified: 2022-10-21 16:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abaci-robot alibaba_cloud_group 2022-10-17 10:50:21 UTC
ABACI reported the following bug by code static scanning:

./net/bluetooth/hci_conn.c:2038:6-13: WARNING: kzalloc should be used for cp, instead of kmalloc/memset.

In the following kernel version:

name: linux-next
url: http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/next/linux-next.git
branch: next-20221012
commit: f843795727e4f5612c612cd178db1557978da742