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>
Thu, 3 Mar 2016 23:07:13 +0000 (15:07 -0800)
commit6472e6b6afc6e3fb7ec4d2890b4eed0d25f71ae9
tree3348a5e58377a57744a52f2e6d431161608b217e
parentf037c35161f04459ff804eaa197a81f66f973379
mei: fix fasync return value on error

commit ed6dc538e5a36a331b6256d54f435c80f6715460 upstream.

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

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