Skip to content

Commit

Permalink
IB/srp: Allow newline separator for connection string
Browse files Browse the repository at this point in the history
In case the last argument of the connection string is processed as a
string (destination GID for example).

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Acked-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Sagi Grimberg authored and Roland Dreier committed Dec 16, 2014
1 parent 70e71ca commit 7dcf9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2929,7 +2929,7 @@ static int srp_parse_options(const char *buf, struct srp_target_port *target)
return -ENOMEM;

sep_opt = options;
while ((p = strsep(&sep_opt, ",")) != NULL) {
while ((p = strsep(&sep_opt, ",\n")) != NULL) {
if (!*p)
continue;

Expand Down

0 comments on commit 7dcf9c1

Please sign in to comment.