Re: [PATCH v3 2/6] bus: mhi: core: Set BHI and BHIe pointers to NULL in clean-up

From: Hemant Kumar
Date: Wed May 05 2021 - 20:17:46 EST




On 5/5/21 10:08 AM, Bhaumik Bhatt wrote:
Set the BHI and BHIe pointers to NULL as part of clean-up. This
makes sure that stale pointers are not accessed after powering
MHI down.

Suggested-by: Hemant Kumar <hemantk@xxxxxxxxxxxxxx>
Signed-off-by: Bhaumik Bhatt <bbhatt@xxxxxxxxxxxxxx>
Reviewed-by: Jeffrey Hugo <quic_jhugo@xxxxxxxxxxx>

Reviewed-by: Hemant Kumar <hemantk@xxxxxxxxxxxxxx>
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project