projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875cd04
)
cifs: switch CIFSSMBQAllEAs to use memcmp
author
Jeff Layton
<jlayton@redhat.com>
Tue, 11 Oct 2011 10:41:32 +0000
(06:41 -0400)
committer
Steve French
<smfrench@gmail.com>
Thu, 13 Oct 2011 04:41:14 +0000
(23:41 -0500)
...as that's more efficient when we know that the lengths are equal.
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifssmb.c
patch
|
blob
|
history
diff --git
a/fs/cifs/cifssmb.c
b/fs/cifs/cifssmb.c
index
a80f7bd
..
b7df4bf
100644
(file)
--- a/
fs/cifs/cifssmb.c
+++ b/
fs/cifs/cifssmb.c
@@
-5840,7
+5840,7
@@
QAllEAsRetry:
if (ea_name) {
if (ea_name_len == name_len &&
-
strn
cmp(ea_name, temp_ptr, name_len) == 0) {
+
mem
cmp(ea_name, temp_ptr, name_len) == 0) {
temp_ptr += name_len + 1;
rc = value_len;
if (buf_size == 0)