diff options
author | Xiongfeng Wang <[email protected]> | 2022-11-16 17:32:04 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-11-16 13:43:03 +0000 |
commit | 804313b64e412a81b0b3389a10e7622452004aa6 (patch) | |
tree | a29c2da8dbd30df7afcb884bf89d785a8508f0cd /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | db2d2dc9a0b58c6faefb6b002fdbed4f0362d1a4 (diff) |
spi: dw-dma: decrease reference count in dw_spi_dma_init_mfld()
pci_get_device() will increase the reference count for the returned
pci_dev. Since 'dma_dev' is only used to filter the channel in
dw_spi_dma_chan_filer() after using it we need to call pci_dev_put() to
decrease the reference count. Also add pci_dev_put() for the error case.
Fixes: 7063c0d942a1 ("spi/dw_spi: add DMA support")
Signed-off-by: Xiongfeng Wang <[email protected]>
Acked-by: Serge Semin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions