Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 95d44038 authored by Muthukumar Ratty's avatar Muthukumar Ratty Committed by Jens Axboe
Browse files

block: Warn and free bio if bi_end_io is not set



In bio_endio if bio doesn't have bi_end_io (should be an error case),
we set bio to NULL and continue silently without freeing the bio. It
would be good to have a WARN and free the bio to avoid memory leak.

Signed-off-by: default avatarMuthukumar Ratty <muthur@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 0fec08b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment