82c4aeee503fad9dbe8cedb6eeca2b00a2358ec2

Use scnprintf instead of memcpy to copy string into mornitor array. The length of dev name may be shorter than 256 when function __cam_req_mgr_dev_handle_to_name return Invalid dev_hdl, In this case, if we use memcpy to copy string into mornitor array, it may cause to kernel panic. CRs-Fixed: 3444923 Change-Id: I5b0c1a4c3d83041b778c39c00a4759392b6ee7be Signed-off-by: mingpan <quic_mingpan@quicinc.com>
Deskripsi
No description provided
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%