summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2012-10-31 09:16:44 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-17 13:15:55 -0800
commit506485a3c6d926cc01e6d05088eac94adf1d6ae5 (patch)
tree580e630da6ecf040e229dabb9b43dc31a8f6502f /drivers/mmc
parent75d1ac720f8e92d2334ff7cc4e9a58ddb5213636 (diff)
downloadlinux-3.10-506485a3c6d926cc01e6d05088eac94adf1d6ae5.tar.gz
linux-3.10-506485a3c6d926cc01e6d05088eac94adf1d6ae5.tar.bz2
linux-3.10-506485a3c6d926cc01e6d05088eac94adf1d6ae5.zip
target: Don't return success from module_init() if setup fails
commit 0d0f9dfb31e0a6c92063e235417b42df185b3275 upstream. If the call to core_dev_release_virtual_lun0() fails, then nothing sets ret to anything other than 0, so even though everything is torn down and freed, target_core_init_configfs() will seem to succeed and the module will be loaded. Fix this by passing the return value on up the chain. Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions