Skip to content

Commit

Permalink
[PATCH] s390: minor fix in cu3088
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cornelia Huck authored and Jeff Garzik committed May 27, 2006
1 parent a24b163 commit 7401a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/net/cu3088.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 7401a46

Please sign in to comment.