]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udf: Fix memory leak when mounting
authorJan Kara <jack@suse.cz>
Tue, 22 Sep 2020 10:20:14 +0000 (12:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:50 +0000 (11:08 +0100)
commit9bbfd6578e596d3bf480e74d142e49c88102014d
treec5363065076dde63cdcd163235dd63a28e867b8b
parentd8a2bd86bf4c8138eec3224d3e70d94b2ab18371
udf: Fix memory leak when mounting

commit a7be300de800e755714c71103ae4a0d205e41e99 upstream.

udf_process_sequence() allocates temporary array for processing
partition descriptors on volume which it fails to free. Free the array
when it is not needed anymore.

Fixes: 7b78fd02fb19 ("udf: Fix handling of Partition Descriptors")
CC: stable@vger.kernel.org
Reported-by: syzbot+128f4dd6e796c98b3760@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/udf/super.c