[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <471728F7.6020809@dev.rtsoft.ru>
Date: Thu, 18 Oct 2007 13:35:51 +0400
From: Dmitry Antipov <antipov@....rtsoft.ru>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] -EINVAL if no fasync op for file
This patch proposes an additional error checking performed within setfl().
As a result, fcntl (fd, F_SETFL, O_ASYNC) will return -1 and set errno
to -EINVAL if filp->f_op->fasync is NULL for file specified by fd. This
is possible, for example, if fd is a descriptor returned by inotify_init().
Dmitry
View attachment "2.6.23-fcntl-fasync-check.patch" of type "text/x-patch" (353 bytes)
Powered by blists - more mailing lists