diff options
| author | Iván Ezequiel Rodriguez <ivanrwcm25@gmail.com> | 2026-08-31 12:53:35 -0300 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-10-04 19:24:21 +0200 |
| commit | 2648e3d4ca08014eb6125d96acb177e767d7c807 (patch) | |
| tree | 89670cdb37eadcba5572acf559184dd67726cbbd /rust/kernel/alloc/allocator | |
| parent | 23a00d8fb0452a4b182f4fea01e244f47758f4ee (diff) | |
power: supply: return -ENOMEM on OCV table alloc failure
power_supply_get_battery_info() maps a failed kcalloc() for the OCV
capacity table to -EINVAL. Return -ENOMEM instead, matching the
resistance-temp-table allocation path in the same function.
Signed-off-by: Iván Ezequiel Rodriguez <ivanrwcm25@gmail.com>
Link: https://patch.msgid.link/20260831155339.181487-2-ivanrwcm25@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
