mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +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;
|
||||
|
||||
if (!(end = strchr(start, delim[i])))
|
||||
return count;
|
||||
return -EINVAL;
|
||||
len = min_t(ptrdiff_t, BUS_ID_SIZE, end - start + 1);
|
||||
strlcpy (bus_ids[i], start, len);
|
||||
argv[i] = bus_ids[i];
|
||||
|
|
Loading…
Reference in a new issue