Re: [PATCH] mhi_bus: core: Check state before processing power_down

2021-02-16 Thread Manivannan Sadhasivam
On Tue, Feb 16, 2021 at 02:38:16PM -0700, Jeffrey Hugo wrote: > 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, th

Re: [PATCH] mhi_bus: core: Check state before processing power_down

2021-02-16 Thread Bhaumik Bhatt
On 2021-02-16 01:38 PM, Jeffrey Hugo wrote: 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

[PATCH] mhi_bus: core: Check state before processing power_down

2021-02-16 Thread Jeffrey Hugo
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: Jeff