summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-03-02 06:14:40 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2017-03-18 22:47:25 +0100
commit2579325ca0acc598fdf41ba12b2871d3467f28df (patch)
treee9249ca9b9b3cbbdd5eb4c0cbe43b93c47bcc298 /drivers/target
parenttcmu: allow hw_max_sectors greater than 128 (diff)
downloadlinux-2579325ca0acc598fdf41ba12b2871d3467f28df.tar.xz
linux-2579325ca0acc598fdf41ba12b2871d3467f28df.zip
tcmu: return on first Opt parse failure
We only were returing failure if the last opt to be parsed failed. This has a return failure when we first detect a failure. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_user.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index 24e8580f07b8..4339ab2133b3 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -1118,6 +1118,9 @@ static ssize_t tcmu_set_configfs_dev_params(struct se_device *dev,
default:
break;
}
+
+ if (ret)
+ break;
}
kfree(orig);