Skip to content
Commit 9e9432c2 authored by Chuck Ebbert's avatar Chuck Ebbert Committed by Jens Axboe
Browse files

block: fix bugs in bio-integrity mempool usage



Fix two bugs in the bio integrity code:

 use_bip_pool() always returns 0 because it checks against the wrong limit,
 causing the mempool to be used only when regular allocation fails.

 When the mempool is used as a fallback we don't free the data properly.

Signed-Off-By: default avatarChuck Ebbert <cebbert@redhat.com>
Acked-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 1d616585
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment