Browse Source

IB/srp: Allow newline separator for connection string

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>
Sagi Grimberg 10 years ago
parent
commit
7dcf9c193b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/infiniband/ulp/srp/ib_srp.c

+ 1 - 1
drivers/infiniband/ulp/srp/ib_srp.c

@@ -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;