udf: Fix memory leak when mounting
authorJan Kara <jack@suse.cz>
Tue, 22 Sep 2020 10:20:14 +0000 (12:20 +0200)
committerJan Kara <jack@suse.cz>
Tue, 22 Sep 2020 10:20:14 +0000 (12:20 +0200)
commita7be300de800e755714c71103ae4a0d205e41e99
tree86cf561ebc30616f8049efb93408454eea74211e
parentaa9f6661eddd342e8d7a621a805beb7354d8d8f9
udf: Fix memory leak when mounting

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>
fs/udf/super.c