diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-02 20:04:47 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-02 20:04:47 +0200 |
commit | 99039e1352fa451bd46e2c020dc78bcaf2a159d9 (patch) | |
tree | e12d929e43525e1153418e431646399722dfa195 /kernel | |
parent | Merge branch 'for-linus' of git://neil.brown.name/md (diff) | |
parent | [PATCH] audit: Moved variable declaration to beginning of function (diff) | |
download | linux-99039e1352fa451bd46e2c020dc78bcaf2a159d9.tar.xz linux-99039e1352fa451bd46e2c020dc78bcaf2a159d9.zip |
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
Diffstat (limited to 'kernel')
-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) && |