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

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

Reviewed-by: default avatarShirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent c78cd838
...@@ -987,8 +987,8 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl) ...@@ -987,8 +987,8 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
return -EINVAL; return -EINVAL;
} }
if (psid->num_subauth) {
#ifdef CONFIG_CIFS_DEBUG2 #ifdef CONFIG_CIFS_DEBUG2
if (psid->num_subauth) {
int i; int i;
cFYI(1, "SID revision %d num_auth %d", cFYI(1, "SID revision %d num_auth %d",
psid->revision, psid->num_subauth); psid->revision, psid->num_subauth);
...@@ -1002,8 +1002,8 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl) ...@@ -1002,8 +1002,8 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
num auths and therefore go off the end */ num auths and therefore go off the end */
cFYI(1, "RID 0x%x", cFYI(1, "RID 0x%x",
le32_to_cpu(psid->sub_auth[psid->num_subauth-1])); le32_to_cpu(psid->sub_auth[psid->num_subauth-1]));
#endif
} }
#endif
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment