audit: Fix possible return value truncation in audit_get_context()

The audit subsystem treats syscall return codes as type long, unfortunately
the audit_get_context() function mistakenly converts the return code to an
int type in the parameters which could cause problems on systems where the
sizeof(int) != sizeof(long).

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by Paul Moore and committed by Al Viro 6d208da8 55ad2f8d

+1 -1
+1 -1
kernel/auditsc.c
··· 752 752 753 753 static inline struct audit_context *audit_get_context(struct task_struct *tsk, 754 754 int return_valid, 755 - int return_code) 755 + long return_code) 756 756 { 757 757 struct audit_context *context = tsk->audit_context; 758 758