From: Heinrich Schuchardt Date: Sat, 27 Sep 2014 08:52:37 +0000 (+0200) Subject: staging : android : sync : get_unused_fd X-Git-Tag: fixes-for-v3.18-merge-window~15^2~190 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae66475289d13ef724cd5a523a4a5ce42e81582b;p=pandora-kernel.git staging : android : sync : get_unused_fd 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/sync.h b/drivers/staging/android/sync.h index 66b0f431f63e..a21b79fb4c8e 100644 --- a/drivers/staging/android/sync.h +++ b/drivers/staging/android/sync.h @@ -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);