aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-rtl-pass.h
diff options
context:
space:
mode:
authorXin Xiong <[email protected]>2022-01-25 18:12:15 +0800
committerMark Brown <[email protected]>2022-01-26 15:52:05 +0000
commit37c2c83ca4f1ef4b6908181ac98e18360af89b42 (patch)
treed071a363b9427eceeb68690d79e67ed1ab78bb64 /scripts/gcc-plugins/gcc-generate-rtl-pass.h
parente937440f7fc444a3e3f1fb75ea65292d6f433a44 (diff)
spi: uniphier: fix reference count leak in uniphier_spi_probe()
The issue happens in several error paths in uniphier_spi_probe(). When either dma_get_slave_caps() or devm_spi_register_master() returns an error code, the function forgets to decrease the refcount of both `dma_rx` and `dma_tx` objects, which may lead to refcount leaks. Fix it by decrementing the reference count of specific objects in those error paths. Signed-off-by: Xin Xiong <[email protected]> Signed-off-by: Xiyu Yang <[email protected]> Signed-off-by: Xin Tan <[email protected]> Reviewed-by: Kunihiko Hayashi <[email protected]> Fixes: 28d1dddc59f6 ("spi: uniphier: Add DMA transfer mode support") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions