aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/cik.c
diff options
context:
space:
mode:
authorJustin Tee <[email protected]>2019-12-05 02:09:01 +0000
committerJens Axboe <[email protected]>2019-12-05 18:38:36 +0000
commitece841abbed2da71fa10710c687c9ce9efb6bf69 (patch)
tree76f3d630387629bd6dcfa77163aa3aa94503cc07 /drivers/gpu/drm/amd/amdgpu/cik.c
parentbfq-iosched: Ensure bio->bi_blkg is valid before using it (diff)
downloadkernel-ece841abbed2da71fa10710c687c9ce9efb6bf69.tar.gz
kernel-ece841abbed2da71fa10710c687c9ce9efb6bf69.zip
block: fix memleak of bio integrity data
7c20f11680a4 ("bio-integrity: stop abusing bi_end_io") moves bio_integrity_free from bio_uninit() to bio_integrity_verify_fn() and bio_endio(). This way looks wrong because bio may be freed without calling bio_endio(), for example, blk_rq_unprep_clone() is called from dm_mq_queue_rq() when the underlying queue of dm-mpath is busy. So memory leak of bio integrity data is caused by commit 7c20f11680a4. Fixes this issue by re-adding bio_integrity_free() to bio_uninit(). Fixes: 7c20f11680a4 ("bio-integrity: stop abusing bi_end_io") Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by Justin Tee <[email protected]> Add commit log, and simplify/fix the original patch wroten by Justin. Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
0 files changed, 0 insertions, 0 deletions