OSDN Git Service

IB/srp: Allow newline separator for connection string
authorSagi Grimberg <sagig@mellanox.com>
Sun, 19 Oct 2014 15:19:02 +0000 (18:19 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:15:23 +0000 (18:15 -0800)
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>
drivers/infiniband/ulp/srp/ib_srp.c

index 5461924..db3c8c8 100644 (file)
@@ -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;