From: "Winkler, Tomas" <tomas.winkler@intel.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Al Viro <viro@ZenIV.linux.org.uk>
Cc: "Usyskin, Alexander" <alexander.usyskin@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: RE: [char-misc for v4.4] mei: fix fasync return value on error
Date: Mon, 14 Dec 2015 09:18:13 +0000 [thread overview]
Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B540D55AE@hasmsx109.ger.corp.intel.com> (raw)
In-Reply-To: <1448785749-26773-1-git-send-email-tomas.winkler@intel.com>
> fasync should return a negative value on error
> and not poll mask POLLERR.
>
> Cc: <stable@vger.kernel.org> # 4.3+
> Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> ---
> drivers/misc/mei/main.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
> index b2f2486b3d75..677d0362f334 100644
> --- a/drivers/misc/mei/main.c
> +++ b/drivers/misc/mei/main.c
> @@ -657,7 +657,9 @@ out:
> * @file: pointer to file structure
> * @band: band bitmap
> *
> - * Return: poll mask
> + * Return: negative on error,
> + * 0 if it did no changes,
> + * and positive a process was added or deleted
> */
> static int mei_fasync(int fd, struct file *file, int band)
> {
> @@ -665,7 +667,7 @@ static int mei_fasync(int fd, struct file *file, int band)
> struct mei_cl *cl = file->private_data;
>
> if (!mei_cl_is_connected(cl))
> - return POLLERR;
> + return -ENODEV;
>
> return fasync_helper(fd, file, band, &cl->ev_async);
> }
Greg, I saw this patch wasn't applied in rc5, any comments on the patch?
Thanks
Tomas
prev parent reply other threads:[~2015-12-14 9:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-29 8:29 Tomas Winkler
2015-12-14 9:18 ` Winkler, Tomas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5B8DA87D05A7694D9FA63FD143655C1B540D55AE@hasmsx109.ger.corp.intel.com \
--to=tomas.winkler@intel.com \
--cc=alexander.usyskin@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®