projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e71ca
)
IB/srp: Allow newline separator for connection string
author
Sagi Grimberg
<sagig@mellanox.com>
Sun, 19 Oct 2014 15:19:02 +0000
(18:19 +0300)
committer
Roland 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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/srp/ib_srp.c
b/drivers/infiniband/ulp/srp/ib_srp.c
index 5461924c9f10ef9311a8f11a5091170c4597281a..db3c8c851af16cd22524f080d2db91581621b020 100644
(file)
--- 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)
return -ENOMEM;
sep_opt = options;
- while ((p = strsep(&sep_opt, ",")) != NULL) {
+ while ((p = strsep(&sep_opt, ",
\n
")) != NULL) {
if (!*p)
continue;