mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
gpio: regmap: Fix memleak in error path in gpio_regmap_register()
commit52721cfc78upstream. Call gpiochip_remove() to free the resources allocated by gpiochip_add_data() in error path. Fixes:553b75d4bf("gpio: regmap: Allow to allocate regmap-irq device") Fixes:ae495810cf("gpio: regmap: add the .fixed_direction_output configuration parameter") CC: stable@vger.kernel.org Co-developed-by: WangYuli <wangyl5933@chinaunicom.cn> Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn> Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20251204101303.30353-1-guanwentao@uniontech.com [Bartosz: reworked the commit message] Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b56975f463
commit
a39b53ee7f
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue