Unverified Commit c9c7afae authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12050 um: line: always fill *error_out in setup_one_line()

parents 2b5417f5 7569b7e7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -378,6 +378,7 @@ int setup_one_line(struct line *lines, int n, char *init,
			parse_chan_pair(NULL, line, n, opts, error_out);
			err = 0;
		}
		*error_out = "configured as 'none'";
	} else {
		char *new = kstrdup(init, GFP_KERNEL);
		if (!new) {
@@ -401,6 +402,7 @@ int setup_one_line(struct line *lines, int n, char *init,
			}
		}
		if (err) {
			*error_out = "failed to parse channel pair";
			line->init_str = NULL;
			line->valid = 0;
			kfree(new);