mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
[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: Frank Pavlic <fpavlic@de.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
a24b163b7c
commit
7401a4670f
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue