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

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

cifs: move num_subauth check inside of CONFIG_CIFS_DEBUG2 check in parse_sid()

parent c78cd838
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -987,8 +987,8 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
		return -EINVAL;
	}

	if (psid->num_subauth) {
#ifdef CONFIG_CIFS_DEBUG2
	if (psid->num_subauth) {
		int i;
		cFYI(1, "SID revision %d num_auth %d",
			psid->revision, psid->num_subauth);
@@ -1002,8 +1002,8 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
			num auths and therefore go off the end */
		cFYI(1, "RID 0x%x",
			le32_to_cpu(psid->sub_auth[psid->num_subauth-1]));
#endif
	}
#endif

	return 0;
}