summaryrefslogtreecommitdiffstats
path: root/block/mq-deadline-main.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-07-19 12:53:00 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-24 16:04:58 +0200
commitd9cf3bd531844ffbfe94b16e417037a16efc988d (patch)
tree3f67cd309c9508be5de6a84c06621fa44fdc67c1 /block/mq-deadline-main.c
parentblock: remove CONFIG_DEBUG_BLOCK_EXT_DEVT (diff)
downloadlinux-d9cf3bd531844ffbfe94b16e417037a16efc988d.tar.xz
linux-d9cf3bd531844ffbfe94b16e417037a16efc988d.zip
bio: fix page leak bio_add_hw_page failure
__bio_iov_append_get_pages() doesn't put not appended pages on bio_add_hw_page() failure, so potentially leaking them, fix it. Also, do the same for __bio_iov_iter_get_pages(), even though it looks like it can't be triggered by userspace in this case. Fixes: 0512a75b98f8 ("block: Introduce REQ_OP_ZONE_APPEND") Cc: stable@vger.kernel.org # 5.8+ Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/1edfa6a2ffd66d55e6345a477df5387d2c1415d0.1626653825.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/mq-deadline-main.c')
0 files changed, 0 insertions, 0 deletions