Re: [PATCH] crypto: ahash - Zero positive err value in ahash_update_finish

From: T Pratham
Date: Mon Nov 24 2025 - 04:53:35 EST


On 21/11/25 11:24, Herbert Xu wrote:
> On Thu, Nov 13, 2025 at 07:30:13PM +0530, T Pratham wrote:
> The partial block length returned by a block-only driver should
> not be passed up to the caller since ahash itself deals with the
> partial block data.
>
> Set err to zero in ahash_update_finish if it was positive.
>
> Reported-by: T Pratham <t-pratham@xxxxxx>
> Fixes: 9d7a0ab1c753 ("crypto: ahash - Handle partial blocks in API")
> Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
>

This fixes the issue.

Tested-by: T Pratham <t-pratham@xxxxxx>
--
Regards
T Pratham <t-pratham@xxxxxx>