summaryrefslogtreecommitdiff
path: root/drivers/uio
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2024-03-18 20:35:06 +0300
committerSasha Levin <sashal@kernel.org>2024-03-27 01:17:36 +0300
commit6d35654f03c35c273240d85ec67e3f2c3596c4e0 (patch)
tree1dfc0540684faaebfa70e73a988df70fea264cc4 /drivers/uio
parent954b72d92e03ae6a79bb8f3d13a383f9113270a2 (diff)
downloadlinux-6d35654f03c35c273240d85ec67e3f2c3596c4e0.tar.xz
dm-integrity: fix a memory leak when rechecking the data
[ Upstream commit 55e565c42dce81a4e49c13262d5bc4eb4c2e588a ] Memory for the "checksums" pointer will leak if the data is rechecked after checksum failure (because the associated kfree won't happen due to 'goto skip_io'). Fix this by freeing the checksums memory before recheck, and just use the "checksum_onstack" memory for storing checksum during recheck. Fixes: c88f5e553fe3 ("dm-integrity: recheck the integrity tag after a failure") Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/uio')
0 files changed, 0 insertions, 0 deletions