]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm-verity: fix a memory leak if some arguments are specified multiple times
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 3 Jun 2025 16:55:50 +0000 (18:55 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Tue, 3 Jun 2025 17:01:42 +0000 (19:01 +0200)
commit66be40a14e496689e1f0add50118408e22c96169
treee9184f3711ac408384843b061990dbf884a56abb
parent829451beaed6165eb11d7a9fb4e28eb17f489980
dm-verity: fix a memory leak if some arguments are specified multiple times

If some of the arguments "check_at_most_once", "ignore_zero_blocks",
"use_fec_from_device", "root_hash_sig_key_desc" were specified more than
once on the target line, a memory leak would happen.

This commit fixes the memory leak. It also fixes error handling in
verity_verify_sig_parse_opt_args.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-verity-fec.c
drivers/md/dm-verity-target.c
drivers/md/dm-verity-verify-sig.c