cifs: switch CIFSSMBQAllEAs to use memcmp
...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>
This commit is contained in:
parent
875cd04381
commit
ac423446d8
1 changed files with 1 additions and 1 deletions
|
@ -5840,7 +5840,7 @@ CIFSSMBQAllEAs(const int xid, struct cifs_tcon *tcon,
|
|||
|
||||
if (ea_name) {
|
||||
if (ea_name_len == name_len &&
|
||||
strncmp(ea_name, temp_ptr, name_len) == 0) {
|
||||
memcmp(ea_name, temp_ptr, name_len) == 0) {
|
||||
temp_ptr += name_len + 1;
|
||||
rc = value_len;
|
||||
if (buf_size == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue