瀏覽代碼

[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>
Cornelia Huck 19 年之前
父節點
當前提交
7401a4670f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/s390/net/cu3088.c

+ 1 - 1
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];