OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a24b163
)
[PATCH] s390: minor fix in cu3088
author
Cornelia Huck
<cornelia.huck@de.ibm.com>
Wed, 24 May 2006 07:51:05 +0000
(09:51 +0200)
committer
Jeff Garzik
<jeff@garzik.org>
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 <fpavlic@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/s390/net/cu3088.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/cu3088.c
b/drivers/s390/net/cu3088.c
index
b125331
..
e1b8c9a
100644
(file)
--- 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];