summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJiajia Liu <liujiajia@kylinos.cn>2026-05-20 05:15:00 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-06-11 21:24:39 +0300
commitddb249341df3779c3c5cbe407b196f39921e1c53 (patch)
treec8327014f25fbfe70a28d465763882075b30dfbc /tools/lib/python
parent5269f7231c2b78774c39ae3a27ce2c497cd5aff4 (diff)
downloadlinux-ddb249341df3779c3c5cbe407b196f39921e1c53.tar.xz
Bluetooth: btmtk: remove extra copy in cmd array init
In btmtk_setup_firmware_79xx, the data length indicated by wmt_params.dlen in the cmd buffer is MTK_SEC_MAP_NEED_SEND_SIZE + 1. Except for the first byte, the remaining length is MTK_SEC_MAP_NEED_SEND_SIZE. memcpy copied one more byte to cmd + 1 than the remaining length. Align the length passed to memcpy to avoid exceeding current section map. Signed-off-by: Jiajia Liu <liujiajia@kylinos.cn> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions