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

From: Manivannan Sadhasivam
Date: Fri Jun 25 2021 - 09:03:54 EST


On Fri, Jun 25, 2021 at 02:38:58PM +0200, Greg KH wrote:
> On Fri, Jun 25, 2021 at 06:03:51PM +0530, Manivannan Sadhasivam wrote:
> > From: Bhaumik Bhatt <bbhatt@xxxxxxxxxxxxxx>
> >
> > 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.
> >
> > Cc: stable@xxxxxxxxxxxxxxx
>
> Why is this needed for stable, but patch 5/10 is not?
>

Shoot! This one relies on 5/10 and fixes a corner case where the BHI/BHIe
pointers might be used after MHI powerdown. But this requires backporting
the patches 5-10 cleanly (a series).

So I guess the stable tag should be removed for this patch. We will test this
series on stable kernels (on how far) and make sure this doesn't break anything.
Then we can share the commit IDs to be backported with details?

Thanks,
Mani

> And what commit does this fix? How far back should it go?
>
> And is this really fixing anything?
>
> thanks,
>
> greg k-h