]> www.infradead.org Git - users/jedix/linux-maple.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>
Mon, 10 Aug 2015 19:21:57 +0000 (12:21 -0700)
commit35c8bade335f6d747f4567cfa5b678b6798a2187
treeebc9312af97f5d85089508aa1d04306f064deb4a
parent81b75e85593dcbfde8a86cd44bd75cc96a22849e
mei: prevent unloading mei hw modules while the device is opened.

commit 154322f47376fed6ab1e4b350aa45fffa15a61aa upstream.

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.

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