patch "mei: bus: fix hw module get/put balance" added to char-misc-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
mei: bus: fix hw module get/put balance
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-linus 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 hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
69bf5313035926b0b6a6578de4f3168a8f5c19b8Mon Sep 17 00:00:00 2001
From: Tomas Winkler <[email protected]>
Date: Mon, 27 Aug 2018 22:40:15 +0300
Subject: mei: bus: fix hw module get/put balance
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
In case the device is not connected it doesn't 'get' hw module and hence should not 'put' it on disable.
Cc: <[email protected]> 4.16+
Fixes:'commit 257355a44b99 ("mei: make module referencing local to the bus.c")'
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=200455
--- drivers/misc/mei/bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/misc/mei/bus.c +1 -2
@@ -616,9 +616,8 @@ int mei_cldev_disable(struct mei_cl_device *cldev)if (err <0 )dev_err (bus->dev,"Could not disconnect from the ME client\n" ); -out:mei_cl_bus_module_put (cldev); - +out:/* Flush queues and remove any pending read */ mei_cl_flush_queues (cl,NULL );mei_cl_unlink (cl);
Signature · 1 line
2.18.0