]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcmu: return on first Opt parse failure
authorMike Christie <mchristi@redhat.com>
Thu, 2 Mar 2017 05:14:40 +0000 (23:14 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 23 Jun 2017 04:10:52 +0000 (21:10 -0700)
commit2de21e4431856e4411338e2f8f93087781b13c5e
tree9ef922b23b4be0489f312a9983c2a3aac68ca6eb
parentbd08d057364a452f87f7cb12922c92e44553df55
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>
Orabug: 25395066
(cherry picked from commit 2579325ca0acc598fdf41ba12b2871d3467f28df)
Signed-off-by: Kyle Fortin <kyle.fortin@oracle.com>
Reviewed-by: Shan Hai <shan.hai@oracle.com>
drivers/target/target_core_user.c