]> git.baikalelectronics.ru Git - kernel.git/commit
mei: bus: fix hw module get/put balance
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 27 Aug 2018 19:40:15 +0000 (22:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Sep 2018 07:14:24 +0000 (09:14 +0200)
commitda1b51c3aa79dc184e03b666b99cca61a9b287d5
tree188717caf91dd6bbd1d8c8471503b0167aada0ac
parent006ef58fc905fc2967bceca90bf3a593dd3c5f11
mei: bus: fix hw module get/put balance

In case the device is not connected it doesn't 'get'
hw module and hence should not 'put' it on disable.

Cc: <stable@vger.kernel.org> 4.16+
Fixes:'commit 02c995224a76 ("mei: make module referencing local to the bus.c")'
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=200455
Tested-by: Georg Müller <georgmueller@gmx.net>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c