summaryrefslogtreecommitdiff
path: root/tools/lib/python/__init__.py
diff options
context:
space:
mode:
authorHrushiraj Gandhi <hrushirajg23@gmail.com>2026-09-01 12:59:50 +0530
committerConor Dooley <conor.dooley@microchip.com>2026-09-08 20:36:04 +0100
commit525e00a1bbced112f5431448842b27fa7621725f (patch)
tree6a271b55621ddb0111df40c691a2137570bc5623 /tools/lib/python/__init__.py
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
downloadlinux-next-525e00a1bbced112f5431448842b27fa7621725f.tar.gz
linux-next-525e00a1bbced112f5431448842b27fa7621725f.zip
firmware: microchip: use kzalloc_objs() instead of kzalloc() with multiply
response_msg is sized as AUTO_UPDATE_FEATURE_RESP_SIZE * sizeof(*response_msg) by hand in both call sites. Use kzalloc_objs() instead, matching the kzalloc_obj() already used elsewhere in this same file for the other allocations in these functions, and getting the same overflow-checked size computation kzalloc_obj() already benefits from. No functional change. Signed-off-by: Hrushiraj Gandhi <hrushirajg23@gmail.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Diffstat (limited to 'tools/lib/python/__init__.py')
0 files changed, 0 insertions, 0 deletions