diff options
| author | Sudeep Holla <sudeep.holla@kernel.org> | 2026-11-09 15:19:26 +0000 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-11-13 12:08:12 -0800 |
| commit | a2996d892d0150d059d39c683d95d6fd7a37630a (patch) | |
| tree | 340676b08fd1befdaf801fcc9c6df9ee4b148d34 /rust/kernel/alloc/kvec/errors.rs | |
| parent | ca1abdd1a9b9ce51713a18c8905bf10579533c3b (diff) | |
hwmon: (scmi) Check channel config allocation
scmi_hwmon_add_chan_info() can fail to allocate a channel's config
array. Ignoring that error leaves a channel with a NULL config pointer
in the hwmon chip info, which hwmon dereferences while registering the
device.
Check the helper's return value and abort probe on failure.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/bug/linux-d10ced6b-a6f0-403b-9619-f5a6573f9e7f
Fixes: b23688aefb8b ("hwmon: add support for sensors exported via ARM SCMI")
Cc: stable@vger.kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Link: https://patch.msgid.link/20261109151927.1672956-1-sudeep.holla@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
