Re: [PATCH v2] crypto: atmel-sha204a - Fix potential UAF and memory leak in remove path

From: Herbert Xu

Date: Sun Mar 15 2026 - 19:21:36 EST


On Sun, Mar 15, 2026 at 08:45:15PM +0100, Thorsten Blum wrote:
>
> Yes, it should be safe since explicitly unregistering the hwrng removes
> the devres entry, and the automatic devm cleanup later essentially
> becomes a no-op.

If it's safe then let's just keep it this way.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt