[PATCH] Replace regular code with appropriate calls to container_of()
Replace a small number of expressions with a call to the "container_of()" macro. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Acked-by: Paul Mackerras <paulus@samba.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Stephen Smalley <sds@tycho.nsa.gov> Cc: James Morris <jmorris@namei.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
521dae191e
commit
b385a144ee
@@ -2654,7 +2654,7 @@ static int selinux_file_send_sigiotask(struct task_struct *tsk,
|
||||
struct file_security_struct *fsec;
|
||||
|
||||
/* struct fown_struct is never outside the context of a struct file */
|
||||
file = (struct file *)((long)fown - offsetof(struct file,f_owner));
|
||||
file = container_of(fown, struct file, f_owner);
|
||||
|
||||
tsec = tsk->security;
|
||||
fsec = file->f_security;
|
||||
|
||||
Reference in New Issue
Block a user