diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2006-05-24 07:51:05 (GMT) |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-05-27 01:56:40 (GMT) |
commit | 7401a4670f0e81d50dcc4e0a7bd2dcb4a5d65e6b (patch) | |
tree | be1ab1298d47ec4b0f2bbb99f637f9246ccd00dc /drivers/s390 | |
parent | a24b163b7c16f9e30e726319115e45ed6e683582 (diff) | |
download | linux-fsl-qoriq-7401a4670f0e81d50dcc4e0a7bd2dcb4a5d65e6b.tar.xz |
[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>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/cu3088.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/cu3088.c b/drivers/s390/net/cu3088.c index b125331..e1b8c9a 100644 --- a/drivers/s390/net/cu3088.c +++ b/drivers/s390/net/cu3088.c @@ -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]; |