Re: [PATCH v2] staging: greybus: audio: fix loop cursor use after iteration

From: Dan Carpenter
Date: Fri Jun 10 2022 - 04:06:58 EST


On Fri, Jun 10, 2022 at 10:00:03AM +0200, Johan Hovold wrote:
> > Fixes: 510e340efe0c ("staging: greybus: audio: Add helper APIs for dynamic audio modules")
> > Cc: stable@xxxxxxxxxxxxxxx
> > Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> > Reviewed-by: Johan Hovold <johan@xxxxxxxxxx>
> > Signed-off-by: Jared Kangas <kangas.jd@xxxxxxxxx>
> > ---
> >
> > Changes since v1:
> > * Removed safe list iteration as suggested by Johan Hovold <johan@xxxxxxxxxx>
> > * Updated patch changelog to explain the list iteration change
> > * Added tags to changelog based on feedback (Cc:, Fixes:, Reviewed-by:)
>
> Apparently Greg applied this to staging-next before we had a change to
> look at it. You should have received a notification from Greg when he
> did so.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/?h=staging-next&id=80c968a04a381dc0e690960c60ffd6b6aee7e157
>
> It seems unlikely that this would cause any issues in real life, but
> there's still a chance it will be picked up by the stable team despite
> the lack of a CC stable tag.

If you want you can always email the stable team to pick up the patch.

regards,
dan carpenter