[PATCH v3 1/3] crypto: atmel-sha204a - fix memory leak at non-blocking RNG work_data
Thorsten Blum
thorsten.blum at linux.dev
Sun Apr 26 06:33:03 PDT 2026
On Wed, Apr 22, 2026 at 09:09:34PM +0000, Lothar Rubusch wrote:
> The driver allocated memory for work_data in the non-blocking read
> path but never free'd it again.
Yes, 'work_data' is allocated once on the first nonblocking RNG request
and reused for subsequent requests, but the memory is eventually freed
on device removal in atmel_sha204a_remove().
The memory might be retained unnecessarily after use when the device is
idle (probably negligible), but it's not a memory leak.
Best,
Thorsten
More information about the linux-arm-kernel
mailing list