aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorNavid Emamdoost <[email protected]>2019-09-30 15:52:40 -0500
committerMark Brown <[email protected]>2019-10-01 18:38:52 +0100
commitd3b0ffa1d75d5305ebe34735598993afbb8a869d (patch)
tree991c195aa1b2dfa984f0fde403590a6c5aa239fe /scripts/gdb/linux/tasks.py
parent6b04e47b73f2a0d2c330cecca99f8e2cb8f85b34 (diff)
spi: gpio: prevent memory leak in spi_gpio_probe
In spi_gpio_probe an SPI master is allocated via spi_alloc_master, but this controller should be released if devm_add_action_or_reset fails, otherwise memory leaks. In order to avoid leak spi_contriller_put must be called in case of failure for devm_add_action_or_reset. Fixes: 8b797490b4db ("spi: gpio: Make sure spi_master_put() is called in every error path") Signed-off-by: Navid Emamdoost <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions