diff options
| author | Xiongfeng Wang <[email protected]> | 2022-11-16 09:32:04 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2022-11-16 13:43:03 +0000 |
| commit | 804313b64e412a81b0b3389a10e7622452004aa6 (patch) | |
| tree | a29c2da8dbd30df7afcb884bf89d785a8508f0cd /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | spi: spi-imx: Fix spi_bus_clk if requested clock is higher than input clock (diff) | |
| download | kernel-804313b64e412a81b0b3389a10e7622452004aa6.tar.gz kernel-804313b64e412a81b0b3389a10e7622452004aa6.zip | |
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-perl.c')
0 files changed, 0 insertions, 0 deletions
