OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3abaa2b
)
tcmu: return on first Opt parse failure
author
Mike Christie
<mchristi@redhat.com>
Thu, 2 Mar 2017 05:14:40 +0000
(23:14 -0600)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Sat, 18 Mar 2017 21:47:25 +0000
(14:47 -0700)
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>
drivers/target/target_core_user.c
patch
|
blob
|
history
diff --git
a/drivers/target/target_core_user.c
b/drivers/target/target_core_user.c
index
24e8580
..
4339ab2
100644
(file)
--- 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);