diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2016-06-23 00:25:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 14:36:39 +0200 |
commit | 2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a (patch) | |
tree | f65006c4651a2271dc42f43fd916bb3312afb586 /drivers/misc/mei/main.c | |
parent | 1eb5bd4d83f566e5ea8521b6020d0cfcb8f1c3ef (diff) | |
download | lwn-2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a.tar.gz lwn-2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a.zip |
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>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r-- | drivers/misc/mei/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 3326bde7fba1..d62e89c80beb 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c @@ -203,7 +203,7 @@ static ssize_t mei_read(struct file *file, char __user *ubuf, mutex_lock(&dev->device_lock); if (!mei_cl_is_connected(cl)) { - rets = -EBUSY; + rets = -ENODEV; goto out; } } |