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

Commit 7401a467 authored by Cornelia Huck's avatar Cornelia Huck Committed by Jeff Garzik
Browse files

[PATCH] s390: minor fix in cu3088



In case of a parse error for the cu3088 group attribute,
return -EINVAL instead of count.

Signed-off-by: default avatarFrank Pavlic <fpavlic@de.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent a24b163b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -77,7 +77,7 @@ group_write(struct device_driver *drv, const char *buf, size_t count)
		int len;
		int len;


		if (!(end = strchr(start, delim[i])))
		if (!(end = strchr(start, delim[i])))
			return count;
			return -EINVAL;
		len = min_t(ptrdiff_t, BUS_ID_SIZE, end - start + 1);
		len = min_t(ptrdiff_t, BUS_ID_SIZE, end - start + 1);
		strlcpy (bus_ids[i], start, len);
		strlcpy (bus_ids[i], start, len);
		argv[i] = bus_ids[i];
		argv[i] = bus_ids[i];