[PATCH] s390: minor fix in cu3088
authorCornelia Huck <[email protected]>
Wed, 24 May 2006 07:51:05 +0000 (09:51 +0200)
committerJeff Garzik <[email protected]>
Sat, 27 May 2006 01:56:40 +0000 (21:56 -0400)
In case of a parse error for the cu3088 group attribute,
return -EINVAL instead of count.

Signed-off-by: Frank Pavlic <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
drivers/s390/net/cu3088.c

index b12533104c1ff5b38242791d22d0e94c0f0293de..e1b8c9a9634fd6de4000bfa777e5f096f5a6fa2f 100644 (file)
@@ -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];