Re: [PATCH] remoteproc: Fix wrong rvring index computation

From: Doug Anderson
Date: Wed Apr 29 2020 - 19:26:58 EST


Hi,

On Fri, 4 Oct 2019 Clement Leger <cleger@xxxxxxxxx> wrote:
>
> Index of rvring is computed using pointer arithmetic. However, since
> rvring->rvdev->vring is the base of the vring array, computation
> of rvring idx should be reversed. It previously lead to writing at negative
> indices in the resource table.
>
> Signed-off-by: Clement Leger <cleger@xxxxxxxxx>
> ---
> drivers/remoteproc/remoteproc_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Randomly stumbled upon this in a list of patches. This patch landed
in mainline as:

00a0eec59ddb remoteproc: Fix wrong rvring index computation

Should it be queued up for stable? I'm guessing:

Fixes: c0d631570ad5 ("remoteproc: set vring addresses in resource table")

-Doug