linux/drivers/soc/ti
Zhang Qilong b4fa73358c soc: ti: Fix reference imbalance in knav_dma_probe
The patch fix two reference leak.

  1) pm_runtime_get_sync will increment pm usage counter even it
     failed. Forgetting to call put operation will result in
     reference leak.

  2) The pm_runtime_enable will increase power disable depth. Thus
     a pairing decrement is needed on the error handling path to
     keep it balanced.

We fix it by: 1) adding call pm_runtime_put_noidle or
pm_runtime_put_sync in error handling. 2) adding pm_runtime_disable
in error handling, to keep usage counter and disable depth balanced.

Fixes: 88139ed030 ("soc: ti: add Keystone Navigator DMA support")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
2020-11-21 19:22:37 -08:00
..
k3-ringacc.c soc: ti: k3-ringacc: Provide documentation for 'k3_ring's 'state' 2020-11-21 19:22:01 -08:00
k3-socinfo.c soc: ti: k3-socinfo: Add entry for AM64X SoC family 2020-11-01 19:38:05 -08:00
Kconfig soc: ti: Kconfig: Drop ARM64 SoC specific configs 2020-11-21 19:22:01 -08:00
knav_dma.c soc: ti: Fix reference imbalance in knav_dma_probe 2020-11-21 19:22:37 -08:00
knav_qmss_acc.c soc: TI knav_qmss: make symbol 'knav_acc_range_ops' static 2020-07-24 14:47:10 -07:00
knav_qmss_queue.c soc: ti: knav_qmss_queue: Fix a whole host of function documentation issues 2020-11-21 19:22:00 -08:00
knav_qmss.h soc: ti: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00
Makefile ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
omap_prm.c soc: ti: omap-prm: Do not check rstst bit on deassert if already deasserted 2020-11-21 19:22:00 -08:00
pm33xx.c soc: ti: pm33xx: Remove set but unused variable 'ret' 2020-11-21 19:22:01 -08:00
pruss.c soc: ti: pruss: Remove wrong check against *get_match_data return value 2020-11-21 19:22:25 -08:00
smartreflex.c PM: AVS: smartreflex Move driver to soc specific drivers 2020-10-16 18:28:43 +02:00
ti_sci_inta_msi.c soc: ti: ti_sci_inta_msi: Add support for second range in resource ranges 2020-11-01 19:38:00 -08:00
ti_sci_pm_domains.c soc: ti: ti_sci_pm_domains: switch to use multiple genpds instead of one 2020-09-11 21:47:08 -07:00
wkup_m3_ipc.c soc: ti: wkup_m3_ipc: Document 'm3_ipc' parameter throughout 2020-11-21 19:22:01 -08:00