From: Tony Jones Date: Sun, 24 Jun 2007 00:16:47 +0000 (-0700) Subject: audit: fix oops removing watch if audit disabled X-Git-Tag: v2.6.22-rc6~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b018b2888b32284e09bba9cccb5cd2e12199feb;p=pandora-kernel.git audit: fix oops removing watch if audit disabled Removing a watched file will oops if audit is disabled (auditctl -e 0). To reproduce: - auditctl -e 1 - touch /tmp/foo - auditctl -w /tmp/foo - auditctl -e 0 - rm /tmp/foo (or mv) Signed-off-by: Tony Jones Cc: Al Viro Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed