diff options
| author | Min zhang <zhangmin2026@yeah.net> | 2026-05-12 08:06:42 +0800 |
|---|---|---|
| committer | Brian Masney <bmasney@redhat.com> | 2026-06-29 15:56:44 -0400 |
| commit | a8036f4591542de4b38ec81d3e2ba47bc0b2652b (patch) | |
| tree | 93d8bebec45ce85207372381209c7bd6d1edac5e /include/linux/array_size.h | |
| parent | 003d9ba31a5d21712a98f43a431fc00ff66c3d21 (diff) | |
clk: hisilicon: reset: Use devm_kzalloc to initialize hisi_reset_controller
Using devm_kmalloc() does not zero-initialize the allocated structure.
Uninitialized members in struct hisi_reset_controller may contain garbage
data, which can cause reset_controller_register() to fail unexpectedly.
Replace devm_kmalloc() with devm_kzalloc() to ensure all structure fields
are properly zero-initialized.
Fixes: 97b7129cd2afb ("reset: hisilicon: change the definition of hisi_reset_init")
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Min zhang <zhangmin2026@yeah.net>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Diffstat (limited to 'include/linux/array_size.h')
0 files changed, 0 insertions, 0 deletions
