Skip to contentSkip to conversation

linux.next: kernel/acct.c: Fix for ns(namespace) variable is used only when ACCT_VERSION is 3

PATCH New Shakil A Khan 1 participant 1 message Sep 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 linux.next: kernel/acct.c: Fix for ns(namespace) variable is used only when ACCT_VERSION is 3

---
 kernel/acct.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/acct.c +2 -0
index b4c667d..5f277f5 100644
@@ -472,7 +472,9 @@ static void do_acct_process(struct bsd_acct_struct *acct)
 	acct_t ac;
 	unsigned long flim;
 	const struct cred *orig_cred;
+#if ACCT_VERSION == 3
 	struct pid_namespace *ns = acct->ns;
+#endif
 	struct file *file = acct->file;
 
 	/*
Signature · 1 line
1.7.1