diff options
| author | Jeffrey Hugo <jhugo@codeaurora.org> | 2021-03-10 13:49:25 -0700 | 
|---|---|---|
| committer | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2021-03-16 11:47:31 +0530 | 
| commit | 9e40641f62cd812b21f2c73b5cfb3346eb466dea (patch) | |
| tree | 90f7acc88b71b4c5a3460bc0b2dfcfdb2e0f09f3 /lib/mpi/mpi-div.c | |
| parent | 68731852f6e58d19f692971dc84deb64265f6d3f (diff) | |
bus: mhi: core: Check state before processing power_down
We cannot process a power_down if the power state is DISABLED.  There is
no valid mhi_ctxt in that case, so attepting to process the power_down
will likely result in a null pointer dereference.  If the power state is
DISABLED, there is nothing to do anyways, so just bail early.
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/1615409365-8165-1-git-send-email-jhugo@codeaurora.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions
