Skip to contentSkip to conversation

Patch "mei: fix return value on disconnection" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Nov 30, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

mei: fix return value on disconnection

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
mei-fix-return-value-on-disconnection.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a Mon 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

From: Tomas Winkler <[email protected]>

commit 2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a upstream.

Correct errno on client disconnection is -ENODEV not -EBUSY

---
 drivers/misc/mei/bus.c  |    2 +-
 drivers/misc/mei/main.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/misc/mei/bus.c +1 -1
@@ -144,7 +144,7 @@ ssize_t __mei_cl_recv(struct mei_cl *cl,
 		mutex_lock(&bus->device_lock);
 
 		if (!mei_cl_is_connected(cl)) {
-			rets = -EBUSY;
+			rets = -ENODEV;
 			goto out;
 		}
 	}
drivers/misc/mei/main.c +1 -1
@@ -207,7 +207,7 @@ static ssize_t mei_read(struct file *fil
 
 		mutex_lock(&dev->device_lock);
 		if (!mei_cl_is_connected(cl)) {
-			rets = -EBUSY;
+			rets = -ENODEV;
 			goto out;
 		}
 	}

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/mei-fix-return-value-on-disconnection.patch queue-4.4/mei-me-disable-driver-on-spt-sps-firmware.patch queue-4.4/mei-me-fix-place-for-kaby-point-device-ids.patch