diff options
author | Ethan Edwards <ethancarteredwards@gmail.com> | 2020-06-24 18:12:58 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-06-30 01:26:17 +0200 |
commit | 65d96351b135c2a694814520a6031f3721020ba9 (patch) | |
tree | 6feb36f70fbe2ebf4bde236ccc7956c4ca661c0d | |
parent | selinux: log error messages on required process class / permissions (diff) | |
download | linux-65d96351b135c2a694814520a6031f3721020ba9.tar.xz linux-65d96351b135c2a694814520a6031f3721020ba9.zip |
selinux: fixed a checkpatch warning with the sizeof macro
`sizeof buf` changed to `sizeof(buf)`
Signed-off-by: Ethan Edwards <ethancarteredwards@gmail.com>
[PM: rewrote the subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r-- | security/selinux/ss/conditional.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index da94a1b4bfda..25850c9ea6fa 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c @@ -212,7 +212,7 @@ int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) if (!booldatum) return -ENOMEM; - rc = next_entry(buf, fp, sizeof buf); + rc = next_entry(buf, fp, sizeof(buf)); if (rc) goto err; @@ -421,7 +421,7 @@ int cond_read_list(struct policydb *p, void *fp) u32 i, len; int rc; - rc = next_entry(buf, fp, sizeof buf); + rc = next_entry(buf, fp, sizeof(buf)); if (rc) return rc; |