aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2025-04-11 01:26:47 +0000
committerHerbert Xu <[email protected]>2025-04-12 01:33:09 +0000
commit9ae0c92fec69374c6db8dddb0df00d86b9afa5da (patch)
tree9ed34712affa77bcd15a64562c64697bf608e125 /drivers/fpga/tests/fpga-mgr-test.c
parentcrypto: caam/qi - Fix drv_ctx refcount bug (diff)
downloadkernel-9ae0c92fec69374c6db8dddb0df00d86b9afa5da.tar.gz
kernel-9ae0c92fec69374c6db8dddb0df00d86b9afa5da.zip
crypto: scomp - Fix wild memory accesses in scomp_free_streams
In order to use scomp_free_streams to free the partially allocted streams in the allocation error path, move the alg->stream assignment to the beginning. Also check for error pointers in scomp_free_streams before freeing the ctx. Finally set alg->stream to NULL to not break subsequent attempts to allocate the streams. Fixes: 3d72ad46a23a ("crypto: acomp - Move stream management into scomp layer") Reported-by: syzkaller <[email protected]> Co-developed-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: Kuniyuki Iwashima <[email protected]> Co-developed-by: Herbert Xu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions