projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drm/i915/gem: Zap the client blt code
[linux-2.6-microblaze.git]
/
lib
/
nlattr.c
diff --git
a/lib/nlattr.c
b/lib/nlattr.c
index
5b6116e
..
1d051ef
100644
(file)
--- a/
lib/nlattr.c
+++ b/
lib/nlattr.c
@@
-828,7
+828,7
@@
int nla_strcmp(const struct nlattr *nla, const char *str)
int attrlen = nla_len(nla);
int d;
int attrlen = nla_len(nla);
int d;
-
if
(attrlen > 0 && buf[attrlen - 1] == '\0')
+
while
(attrlen > 0 && buf[attrlen - 1] == '\0')
attrlen--;
d = attrlen - len;
attrlen--;
d = attrlen - len;