Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211683
b: refs/heads/master
c: 00d85c8
h: refs/heads/master
i:
  211681: 783baf2
  211679: c99c546
v: v3
  • Loading branch information
Eric Paris authored and James Morris committed Oct 20, 2010
1 parent 0729d5b commit b328356
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4419aae1f4f380a3fba0f4f12ffbbbdf3f267c51
refs/heads/master: 00d85c83ac52e2c1a66397f1abc589f80c543425
4 changes: 2 additions & 2 deletions trunk/security/selinux/ss/avtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ int avtab_alloc(struct avtab *h, u32 nrules)
if (shift > 2)
shift = shift - 2;
nslot = 1 << shift;
if (nslot > MAX_AVTAB_SIZE)
nslot = MAX_AVTAB_SIZE;
if (nslot > MAX_AVTAB_HASH_BUCKETS)
nslot = MAX_AVTAB_HASH_BUCKETS;
mask = nslot - 1;

h->htable = kcalloc(nslot, sizeof(*(h->htable)), GFP_KERNEL);
Expand Down
1 change: 0 additions & 1 deletion trunk/security/selinux/ss/avtab.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ void avtab_cache_destroy(void);
#define MAX_AVTAB_HASH_BITS 11
#define MAX_AVTAB_HASH_BUCKETS (1 << MAX_AVTAB_HASH_BITS)
#define MAX_AVTAB_HASH_MASK (MAX_AVTAB_HASH_BUCKETS-1)
#define MAX_AVTAB_SIZE MAX_AVTAB_HASH_BUCKETS

#endif /* _SS_AVTAB_H_ */

0 comments on commit b328356

Please sign in to comment.