RE: [char-misc-next] mei: hbm: fix client dma reply status

From: Grumbach, Emmanuel
Date: Wed Dec 29 2021 - 11:09:41 EST


>
> From: Alexander Usyskin <alexander.usyskin@xxxxxxxxx>
>
> Don't blindly copy status value received from the firmware into internal client
> status field, It may be positive and ERR_PTR(ret) will translate it into an
> invalid address and the caller will crash.
>
> Put the error code into the client status on failure.
>
> Fixes: 369aea845951 ("mei: implement client dma setup.")
> Reported-by: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx> # v5.11+
> Acked-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
> Signed-off-by: Alexander Usyskin <alexander.usyskin@xxxxxxxxx>
> Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
>

Tested-by: : Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>