git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix uevent action-string regression
[sfrench/cifs-2.6.git]
/
lib
/
kobject_uevent.c
diff --git
a/lib/kobject_uevent.c
b/lib/kobject_uevent.c
index 5a402e2982afb4a1a82a28092260bb66bd921269..5b6d7f6956b98efd61d781b66675a8a6ede9f78d 100644
(file)
--- a/
lib/kobject_uevent.c
+++ b/
lib/kobject_uevent.c
@@
-55,7
+55,7
@@
int kobject_action_type(const char *buf, size_t count,
enum kobject_action action;
int ret = -EINVAL;
- if (count &&
buf[count-1] == '\n'
)
+ if (count &&
(buf[count-1] == '\n' || buf[count-1] == '\0')
)
count--;
if (!count)