security: make security_file_set_fowner, f_setown and __f_setown void return
security_file_set_fowner always returns 0, so make it f_setown and __f_setown void return functions and fix up the error handling in the callers. Cc: linux-security-module@vger.kernel.org Signed-off-by: Jeff Layton <jlayton@primarydata.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -2163,8 +2163,9 @@ static int __tty_fasync(int fd, struct file *filp, int on)
|
||||
}
|
||||
get_pid(pid);
|
||||
spin_unlock_irqrestore(&tty->ctrl_lock, flags);
|
||||
retval = __f_setown(filp, pid, type, 0);
|
||||
__f_setown(filp, pid, type, 0);
|
||||
put_pid(pid);
|
||||
retval = 0;
|
||||
}
|
||||
out:
|
||||
return retval;
|
||||
|
Reference in New Issue
Block a user