diff options
| author | Linus Walleij <[email protected]> | 2022-01-10 15:50:07 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2022-02-11 20:19:51 +0000 |
| commit | f444578d727a0ca4a72b19cd4a1d7da9f1fb99fe (patch) | |
| tree | 2feeb4d8be45d811752a3ad6b230adcb36aa8f2b /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | power: supply: core: fix application of sizeof to pointer (diff) | |
| download | kernel-f444578d727a0ca4a72b19cd4a1d7da9f1fb99fe.tar.gz kernel-f444578d727a0ca4a72b19cd4a1d7da9f1fb99fe.zip | |
power: supply: bq256xx: Handle OOM correctly
Since we now return a pointer to an allocated object we need
to account for memory allocation failure in a separate
error path.
Fixes: 25fd330370ac ("power: supply_core: Pass pointer to battery info")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
