aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorDmitry Bogdanov <[email protected]>2025-06-25 11:45:33 +0000
committerChristoph Hellwig <[email protected]>2025-06-30 06:32:16 +0000
commit190f4c2c863af7cc5bb354b70e0805f06419c038 (patch)
tree8218cd25e3ed10ce9e555c9a7524ccd61f585695 /rust/helpers/helpers.c
parentnvme: correctly account for namespace head reference counter (diff)
downloadkernel-190f4c2c863af7cc5bb354b70e0805f06419c038.tar.gz
kernel-190f4c2c863af7cc5bb354b70e0805f06419c038.zip
nvmet: fix memory leak of bio integrity
If nvmet receives commands with metadata there is a continuous memory leak of kmalloc-128 slab or more precisely bio->bi_integrity. Since commit bf4c89fc8797 ("block: don't call bio_uninit from bio_endio") each user of bio_init has to use bio_uninit as well. Otherwise the bio integrity is not getting free. Nvmet uses bio_init for inline bios. Uninit the inline bio to complete deallocation of integrity in bio. Fixes: bf4c89fc8797 ("block: don't call bio_uninit from bio_endio") Signed-off-by: Dmitry Bogdanov <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions