Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16340
b: refs/heads/master
c: 6e20a64
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Kaiser authored and Linus Torvalds committed Jan 6, 2006
1 parent 4ae280c commit 1988ca5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: b09eb1c06a14641209e6b86e9a5b28ea8287f193
refs/heads/master: 6e20a64a3913819133fefeca466211c7eb8adda1
4 changes: 2 additions & 2 deletions trunk/security/selinux/selinuxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static ssize_t selinux_transaction_write(struct file *file, const char __user *b
char *data;
ssize_t rv;

if (ino >= sizeof(write_op)/sizeof(write_op[0]) || !write_op[ino])
if (ino >= ARRAY_SIZE(write_op) || !write_op[ino])
return -EINVAL;

data = simple_transaction_get(file, buf, size);
Expand Down Expand Up @@ -1161,7 +1161,7 @@ static int sel_make_avc_files(struct dentry *dir)
#endif
};

for (i = 0; i < sizeof (files) / sizeof (files[0]); i++) {
for (i = 0; i < ARRAY_SIZE(files); i++) {
struct inode *inode;
struct dentry *dentry;

Expand Down

0 comments on commit 1988ca5

Please sign in to comment.