patch "mei: fix return value on disconnection" added to char-misc-next
Subsystems (3)
This is a note to let you know that I've just added the patch titled
mei: fix return value on disconnection
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-next branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will also be merged in the next major kernel release during the merge window.
If you have any questions about this process, please let me know.
Quoted 1 line
From
2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266aMon Sep 17 00:00:00 2001
From: Tomas Winkler <[email protected]>
Date: Thu, 23 Jun 2016 00:25:31 +0300
Subject: mei: fix return value on disconnection
Correct errno on client disconnection is -ENODEV not -EBUSY
--- drivers/misc/mei/amthif.c | 2 +- drivers/misc/mei/bus.c | 2 +- drivers/misc/mei/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/misc/mei/amthif.c +1 -1
@@ -132,7 +132,7 @@ int mei_amthif_read(struct mei_device *dev, struct file *file,return -ERESTARTSYS ;if (!mei_cl_is_connected (cl)) { - rets = -EBUSY ; + rets = -ENODEV ; goto out; }
drivers/misc/mei/bus.c +1 -1
@@ -143,7 +143,7 @@ ssize_t __mei_cl_recv(struct mei_cl *cl, u8 *buf, size_t length)mutex_lock (&bus->device_lock);if (!mei_cl_is_connected (cl)) { - rets = -EBUSY ; + rets = -ENODEV ; goto out; } }
drivers/misc/mei/main.c +1 -1
@@ -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; } }
Signature · 1 line
2.9.3