staging : android : sync : get_unused_fd
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 27 Sep 2014 08:52:37 +0000 (10:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 02:03:57 +0000 (22:03 -0400)
sync.h recommends to use get_unused_fd which does not set
O_CLOEXEC while the rest of the android tree uses
get_unused_fd_flags and sets O_CLOEXEC.

The patch adjust the comment.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/sync.h

index 66b0f43..a21b79f 100644 (file)
@@ -293,7 +293,8 @@ void sync_fence_put(struct sync_fence *fence);
  * @fence:     fence to install
  * @fd:                file descriptor in which to install the fence
  *
- * Installs @fence into @fd.  @fd's should be acquired through get_unused_fd().
+ * Installs @fence into @fd.  @fd's should be acquired through
+ * get_unused_fd_flags(O_CLOEXEC).
  */
 void sync_fence_install(struct sync_fence *fence, int fd);