Skip to content

Commit

Permalink
tcmu: return on first Opt parse failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Christie authored and Nicholas Bellinger committed Mar 18, 2017
1 parent 3abaa2b commit 2579325
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/target/target_core_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,9 @@ static ssize_t tcmu_set_configfs_dev_params(struct se_device *dev,
default:
break;
}

if (ret)
break;
}

kfree(orig);
Expand Down

0 comments on commit 2579325

Please sign in to comment.