mei: fix fasync return value on error
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 7 Jan 2016 12:46:38 +0000 (14:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Jan 2016 01:03:43 +0000 (17:03 -0800)
commited6dc538e5a36a331b6256d54f435c80f6715460
tree00da8479bf04907e2d3639aa5ac3faac5e35fd78
parente0a7f1f04cd9bb13df7503ba7156ff0a37c9f460
mei: fix fasync return value on error

fasync should return a negative value on error
and not poll mask POLLERR.

Cc: <stable@vger.kernel.org> # 4.3+
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c