From: Eric Paris Date: Tue, 30 Apr 2013 14:46:46 +0000 (-0400) Subject: audit: do not needlessly take a lock in tty_audit_exit X-Git-Tag: v3.10-rc1~5^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bee0a224e791cccbc7ecd7faf2d5932942668976;p=pandora-kernel.git audit: do not needlessly take a lock in tty_audit_exit We were doing spin_lock_irq and spin_unlock_irq. This is STOOPID. If we were in interupt context we were already screwed and called panic() in do_exit(). So the irq stuff is useless. Also, these values can only be changed by receiving a netlink message from current. Since we are in do_exit() clearly we aren't in the syscall sending the netlink message to change these values. Thus, just read them and go with it. Signed-off-by: Eric Paris --- Reading git-diff-tree failed