]> git.ipfire.org Git - thirdparty/linux.git/commit
block: fix incorrect error injection static key decrement
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Jun 2026 16:07:52 +0000 (18:07 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Jun 2026 21:55:11 +0000 (15:55 -0600)
commit214cdae69dba9bb1fc0b517b7fb97bab385a2e3a
tree1f243cbaf75be6c72aa19d879954277e13232de1
parentd5b58fbb2fd7ac25fcd7e1c14730f998a90b0322
block: fix incorrect error injection static key decrement

Only decrement the static key when we had items and thus it was
incremented before.

Fixes: e8dcf2d142bd ("block: add configurable error injection")
Reported-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260622160752.1552516-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/error-injection.c