Files
linux/drivers/md
Christophe JAILLET da991cbd67 dm-inlinecrypt: Fix an error handling path in inlinecrypt_ctr()
All error handling paths, except but this one, branch to the 'bad' label in
the error handling path.

If not done, there is a memory leak and some sensitive data may be kept
around.

So, fix this error path and also do the needed clean-up.

Also, fix missing goto in the "Wrong alignment of iv_offset sector" path.

Fixes: e7f57d2c47 ("dm-inlinecrypt: add target for inline block device encryption")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
2026-07-08 22:33:35 +02:00
..
2026-03-26 18:31:15 +01:00
2023-02-14 14:23:06 -05:00
2024-11-20 11:38:04 +01:00
2026-05-18 14:27:11 +02:00
2025-11-05 08:07:21 -07:00
2025-01-13 07:36:29 -08:00
2026-01-26 13:17:38 +08:00
2026-01-26 13:17:38 +08:00