diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-04-01 15:06:43 -0700 |
|---|---|---|
| committer | Jeff Hugo <jeff.hugo@oss.qualcomm.com> | 2026-05-12 10:20:40 -0600 |
| commit | 6101f78b684895d5860a96322e607e0f46f433ad (patch) | |
| tree | 5c6a23dfa93061311c694a4806d1702bcc43467f /include/linux/timerqueue.h | |
| parent | 5dd1ff95c623b8118ccaae3242119b8552f7b98f (diff) | |
accel/qaic: kcalloc + kzalloc to kzalloc
Consolidate the two-element allocation into a single allocation using a
flexible array member. This reduces memory fragmentation and simplifies
the error path by eliminating the need to check for allocation failure
between the two allocations.
Add __counted_by for runtime bounds checking.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Tested-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260401220643.12802-1-rosenp@gmail.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
