From: Cornelia Huck Date: Wed, 24 May 2006 07:51:05 +0000 (+0200) Subject: [PATCH] s390: minor fix in cu3088 X-Git-Tag: v2.6.17-rc6~101 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7401a4670f0e81d50dcc4e0a7bd2dcb4a5d65e6b;p=linux-2.6 [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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/s390/net/cu3088.c b/drivers/s390/net/cu3088.c index b12533104c..e1b8c9a963 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];