Skip to content

Commit 99039e1

Browse files
committed
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
2 parents 72a8d12 + c4bacef commit 99039e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/auditsc.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,11 @@ static inline int open_arg(int flags, int mask)
243243

244244
static int audit_match_perm(struct audit_context *ctx, int mask)
245245
{
246+
unsigned n;
246247
if (unlikely(!ctx))
247248
return 0;
248249

249-
unsigned n = ctx->major;
250+
n = ctx->major;
250251
switch (audit_classify_syscall(ctx->arch, n)) {
251252
case 0: /* native */
252253
if ((mask & AUDIT_PERM_WRITE) &&

0 commit comments

Comments
 (0)