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

Commit 3520c922 authored by Cornelia Huck's avatar Cornelia Huck Committed by Martin Schwidefsky
Browse files

[S390] cio: dont forget to set last slot to NULL in ccw_uevent().

parent cb00e99c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -117,7 +117,10 @@ static int ccw_uevent(struct device *dev, char **envp, int num_envp,
	snprint_alias(modalias_buf, sizeof(modalias_buf), id, "");
	ret = add_uevent_var(envp, num_envp, &i, buffer, buffer_size, &len,
			     "MODALIAS=%s", modalias_buf);
	if (ret)
		return ret;
	envp[i] = NULL;
	return 0;
}

struct bus_type ccw_bus_type;