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)
commit69bf5313035926b0b6a6578de4f3168a8f5c19b8
tree188717caf91dd6bbd1d8c8471503b0167aada0ac
parentc1a214ad82d7ac6f19fe48f90b13403b40ead9dc
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 257355a44b99 ("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