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
Merge tag 'kgdb-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt...
[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;
-
if
(attrlen > 0 && buf[attrlen - 1] == '\0')
+
while
(attrlen > 0 && buf[attrlen - 1] == '\0')
attrlen--;
d = attrlen - len;