Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7dcf9c19 authored by Sagi Grimberg's avatar Sagi Grimberg Committed by Roland Dreier
Browse files

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: default avatarSagi Grimberg <sagig@mellanox.com>
Acked-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 70e71ca0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2929,7 +2929,7 @@ static int srp_parse_options(const char *buf, struct srp_target_port *target)
		return -ENOMEM;
		return -ENOMEM;


	sep_opt = options;
	sep_opt = options;
	while ((p = strsep(&sep_opt, ",")) != NULL) {
	while ((p = strsep(&sep_opt, ",\n")) != NULL) {
		if (!*p)
		if (!*p)
			continue;
			continue;