mei: fix return value on disconnection
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 22 Jun 2016 21:25:31 +0000 (00:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 12:36:39 +0000 (14:36 +0200)
commit2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a
treef65006c4651a2271dc42f43fd916bb3312afb586
parent1eb5bd4d83f566e5ea8521b6020d0cfcb8f1c3ef
mei: fix return value on disconnection

Correct errno on client disconnection is -ENODEV not -EBUSY

Cc: <stable@vger.kernel.org> #4.3+
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/amthif.c
drivers/misc/mei/bus.c
drivers/misc/mei/main.c