aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorManivannan Sadhasivam <[email protected]>2020-03-24 11:40:47 +0530
committerGreg Kroah-Hartman <[email protected]>2020-03-26 15:51:08 +0100
commit3eb583a6d0aee952715d34f2bbf58db52c5e7c5e (patch)
treef064e79917b5762d53bf1d2b69aa2f56c768a770 /tools/perf/scripts/python/export-to-sqlite.py
parent93e17a44347acd747a76d63dd9339e48c2c9e308 (diff)
bus: mhi: core: Drop the references to mhi_dev in mhi_destroy_device()
For some scenarios like controller suspend and resume, mhi_destroy_device() will get called without mhi_unregister_controller(). In that case, the references to the mhi_dev created for the channels will not be dropped but the channels will be destroyed as per the spec. This will cause issue during resume as the channels will not be created due to the fact that mhi_dev is not NULL. Hence, this change decrements the refcount for mhi_dev in mhi_destroy_device() for concerned channels and also sets mhi_dev to NULL in release_device(). Reported-by: Carl Huang <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions