diff options
| author | Andy Shevchenko <[email protected]> | 2024-10-30 16:27:54 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-11-04 16:49:47 +0000 |
| commit | 815daedc318b2f9f1b956d0631377619a0d69d96 (patch) | |
| tree | 2a0405856e72815f0ce85f678250f3e9b77fd1d1 /drivers/acpi/cppc_acpi.c | |
| parent | ACPI: battery: use DEFINE_SIMPLE_DEV_PM_OPS (diff) | |
| download | kernel-815daedc318b2f9f1b956d0631377619a0d69d96.tar.gz kernel-815daedc318b2f9f1b956d0631377619a0d69d96.zip | |
ACPI: battery: Check for error code from devm_mutex_init() call
Even if it's not critical, the avoidance of checking the error code
from devm_mutex_init() call today diminishes the point of using devm
variant of it. Tomorrow it may even leak something. Add the missed
check.
Fixes: 0710c1ce5045 ("ACPI: battery: initialize mutexes through devm_ APIs")
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Thomas Weißschuh <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Added 2 empty code lines ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
