mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
flag parameters: anon_inode_getfd extension
This patch just extends the anon_inode_getfd interface to take an additional parameter with a flag value. The flag value is passed on to get_unused_fd_flags in anticipation for a use with the O_CLOEXEC flag. No actual semantic changes here, the changed callers all pass 0 for now. [[email protected]: KVM fix] Signed-off-by: Ulrich Drepper <[email protected]> Acked-by: Davide Libenzi <[email protected]> Cc: Michael Kerrisk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c019bbc612
commit
7d9dbca342
7 changed files with 13 additions and 11 deletions
|
|
@ -214,7 +214,7 @@ asmlinkage long sys_eventfd(unsigned int count)
|
|||
* When we call this, the initialization must be complete, since
|
||||
* anon_inode_getfd() will install the fd.
|
||||
*/
|
||||
fd = anon_inode_getfd("[eventfd]", &eventfd_fops, ctx);
|
||||
fd = anon_inode_getfd("[eventfd]", &eventfd_fops, ctx, 0);
|
||||
if (fd < 0)
|
||||
kfree(ctx);
|
||||
return fd;
|
||||
|
|
|
|||
Loading…
Reference in a new issue