diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-02 22:04:47 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-02 22:04:47 +0400 |
commit | 99039e1352fa451bd46e2c020dc78bcaf2a159d9 (patch) | |
tree | e12d929e43525e1153418e431646399722dfa195 | |
parent | 72a8d129cf5811b77f0d6c8acef9ac34a12bccf4 (diff) | |
parent | c4bacefb7aaf49da11a695f29d85d40909f17693 (diff) | |
download | linux-99039e1352fa451bd46e2c020dc78bcaf2a159d9.tar.xz |
Merge branch 'audit.b57' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current
* 'audit.b57' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current:
[PATCH] audit: Moved variable declaration to beginning of function
-rw-r--r-- | kernel/auditsc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 972f8e61d36a..59cedfb040e7 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -243,10 +243,11 @@ static inline int open_arg(int flags, int mask) static int audit_match_perm(struct audit_context *ctx, int mask) { + unsigned n; if (unlikely(!ctx)) return 0; - unsigned n = ctx->major; + n = ctx->major; switch (audit_classify_syscall(ctx->arch, n)) { case 0: /* native */ if ((mask & AUDIT_PERM_WRITE) && |