From: Jeff Layton Date: Tue, 11 Oct 2011 10:41:32 +0000 (-0400) Subject: cifs: switch CIFSSMBQAllEAs to use memcmp X-Git-Tag: firefly_0821_release~3680^2~4277^2~35 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ac423446d83e4fd5c3ffba393b887e531cf6bf46;p=firefly-linux-kernel-4.4.55.git cifs: switch CIFSSMBQAllEAs to use memcmp ...as that's more efficient when we know that the lengths are equal. Reported-by: David Howells Signed-off-by: Jeff Layton Signed-off-by: Steve French --- diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index a80f7bd97b90..b7df4bff3aaa 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -5840,7 +5840,7 @@ QAllEAsRetry: 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)