audit: pass in dentry to audit_copy_inode wherever possible
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Oct 2012 19:25:20 +0000 (15:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Oct 2012 04:31:59 +0000 (00:31 -0400)
commit1c2e51e8c162417d2831007ec256ede06c3a0201
treec21a641405f7de220f16be4d2e74fec387ec92a9
parentf78570dd6ad9563fffd24cc5e1808e1a1242f16e
audit: pass in dentry to audit_copy_inode wherever possible

In some cases, we were passing in NULL even when we have a dentry.

Reported-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/auditsc.c