udf: fix retun value on error path in udf_load_logicalvol
authorNikola Pajkovsky <npajkovs@redhat.com>
Tue, 14 Aug 2012 22:38:08 +0000 (00:38 +0200)
committerJan Kara <jack@suse.cz>
Wed, 15 Aug 2012 12:23:23 +0000 (14:23 +0200)
commit68766a2edcd5cd744262a70a2f67a320ac944760
tree3d70e21ee8b354f9ab928d7e3c460891041cbac4
parent2e84f2641ea91a730642ead558a4ee3bd52310c9
udf: fix retun value on error path in udf_load_logicalvol

In case we detect a problem and bail out, we fail to set "ret" to a
nonzero value, and udf_load_logicalvol will mistakenly report success.

Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c