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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:17:12 +0000 (09:17 -0700)
commitb08d7dbc33f4821d23de1ec921146aca004f46ee
tree370f492abb661d97efe0678794d9d6a80951188c
parent39a088528efe15ad3e1309b710d27fa9e3739aef
udf: fix retun value on error path in udf_load_logicalvol

commit 68766a2edcd5cd744262a70a2f67a320ac944760 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/udf/super.c