]> git.baikalelectronics.ru Git - kernel.git/commit
mei: prevent unloading mei hw modules while the device is opened.
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 18 Jun 2015 08:41:03 +0000 (11:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:31:05 +0000 (21:31 -0700)
commit353cd35d4ccecd8bf9f5002313e2fc5bdaeab055
treee89be0738fb519dc975b6403804d8ed1a2bbc7f0
parente64b6124b1b96a8ce85b15ebf30f0d785c69d85e
mei: prevent unloading mei hw modules while the device is opened.

chrdev_open() increases reference counter on cdev->owner. Instead of
assigning the owner to mei subsystem, the owner has to be set to the
underlaying HW module (mei_me or mei_txe), so once the device is opened
the HW module cannot be unloaded.

Cc: <stable@vger.kernel.org> #3.17+
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c