Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 389d7b26 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Jens Axboe
Browse files

bio: Fix potential memory leak in bio_find_or_create_slab()


Do not leak memory by updating pointer with potentially NULL realloc return value.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 06768067
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment