diff options
| author | Sagi Grimberg <sagig@mellanox.com> | 2014-10-19 11:19:02 -0400 |
|---|---|---|
| committer | Roland Dreier <roland@purestorage.com> | 2014-12-15 21:15:23 -0500 |
| commit | 7dcf9c193bfb779ecf667ee7b059851c71287b17 (patch) | |
| tree | 07c9cf8d3e0ebbfab8e65cf1ad295207b1167d39 | |
| parent | 70e71ca0af244f48a5dcf56dc435243792e3a495 (diff) | |
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>
| -rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 5461924c9f10..db3c8c851af1 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c | |||
| @@ -2929,7 +2929,7 @@ static int srp_parse_options(const char *buf, struct srp_target_port *target) | |||
| 2929 | return -ENOMEM; | 2929 | return -ENOMEM; |
| 2930 | 2930 | ||
| 2931 | sep_opt = options; | 2931 | sep_opt = options; |
| 2932 | while ((p = strsep(&sep_opt, ",")) != NULL) { | 2932 | while ((p = strsep(&sep_opt, ",\n")) != NULL) { |
| 2933 | if (!*p) | 2933 | if (!*p) |
| 2934 | continue; | 2934 | continue; |
| 2935 | 2935 | ||
