From: Sagi Grimberg Date: Sun, 19 Oct 2014 15:19:02 +0000 (+0300) Subject: IB/srp: Allow newline separator for connection string X-Git-Tag: android-x86-4.4-r3~632^2^8 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7dcf9c193bfb779ecf667ee7b059851c71287b17;p=android-x86%2Fkernel.git 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 Acked-by: Bart Van Assche Signed-off-by: Roland Dreier --- 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) return -ENOMEM; sep_opt = options; - while ((p = strsep(&sep_opt, ",")) != NULL) { + while ((p = strsep(&sep_opt, ",\n")) != NULL) { if (!*p) continue;