Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac423446 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French
Browse files

cifs: switch CIFSSMBQAllEAs to use memcmp



...as that's more efficient when we know that the lengths are equal.

Reported-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent 875cd043
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)