linux_dsm_epyc7002/drivers/bus/mhi/core
Hemant Kumar 3c1bd00471 bus: mhi: core: Handle disable transitions in state worker
Mission mode transition is handled by state worker thread but
power off is not. There is a possibility while mission mode
transition is in progress which calls MHI client driver probe,
power off is issued by MHI controller. This results into client
driver probe and remove running in parallel and causes use after
free situation. By queuing disable transition work when mission
mode is in progress prevents the race condition.

Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Reviewed-by: Jeffrey Hugo <jhugo@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200521170249.21795-11-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-22 09:35:43 +02:00
..
boot.c bus: mhi: core: Ensure non-zero session or sequence ID values are used 2020-05-22 09:35:43 +02:00
init.c bus: mhi: core: Handle disable transitions in state worker 2020-05-22 09:35:43 +02:00
internal.h bus: mhi: core: Handle disable transitions in state worker 2020-05-22 09:35:43 +02:00
main.c bus: mhi: core: Remove the system error worker thread 2020-05-22 09:35:43 +02:00
Makefile bus: mhi: core: Add support for basic PM operations 2020-03-19 07:41:04 +01:00
pm.c bus: mhi: core: Handle disable transitions in state worker 2020-05-22 09:35:43 +02:00