diff options
| author | Ioana Ciornei <[email protected]> | 2025-09-22 14:24:21 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2025-09-22 14:35:21 +0000 |
| commit | 3bd44edd6c55828fd4e11cb0efce5b7160bfa2de (patch) | |
| tree | 4ce491bf8cf7c56797cbaecbd7d245cee4720e4f /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | gpiolib: Extend software-node support to support secondary software-nodes (diff) | |
| download | kernel-3bd44edd6c55828fd4e11cb0efce5b7160bfa2de.tar.gz kernel-3bd44edd6c55828fd4e11cb0efce5b7160bfa2de.zip | |
gpio: regmap: fix memory leak of gpio_regmap structure
The gpio_regmap structure is leaked on the error path. Fix this by
jumping to the appropriate kfree instead of returning directly.
Fixes: db305161880a ("gpio: regmap: Allow ngpio to be read from the property")
Signed-off-by: Ioana Ciornei <[email protected]>
Suggested-by: Michael Walle <[email protected]>
Reviewed-by: Michael Walle <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
