mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] sanitize anon_inode_getfd()
a) none of the callers even looks at inode or file returned by anon_inode_getfd() b) any caller that would try to look at those would be racy, since by the time it returns we might have raced with close() from another thread and that file would be pining for fjords. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
9f3acc3140
commit
2030a42cec
7 changed files with 29 additions and 74 deletions
|
@ -8,8 +8,7 @@
|
|||
#ifndef _LINUX_ANON_INODES_H
|
||||
#define _LINUX_ANON_INODES_H
|
||||
|
||||
int anon_inode_getfd(int *pfd, struct inode **pinode, struct file **pfile,
|
||||
const char *name, const struct file_operations *fops,
|
||||
int anon_inode_getfd(const char *name, const struct file_operations *fops,
|
||||
void *priv);
|
||||
|
||||
#endif /* _LINUX_ANON_INODES_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue