]> git.baikalelectronics.ru Git - kernel.git/commit
mcb: Acquire reference to carrier module in core
authorJohannes Thumshirn <jthumshirn@suse.de>
Tue, 10 May 2016 10:39:45 +0000 (12:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2016 01:49:30 +0000 (18:49 -0700)
commit1a45de8d1eb24a3f1da4cd61f7b267645a9cc7f6
treee35ecd261822a8dc107b5870031c862146c92ea7
parent347bbf3882ad8c53219311ca91119e60859186ef
mcb: Acquire reference to carrier module in core

Acquire a reference to the carrier's kernel module in bus code, so
it can't be removed from the kernel while it still has a bus and thus
possibly devices attached to it.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reported-by: Andreas Werner <andreas.werner@men.de>
Tested-by: Andreas Werner <andreas.werner@men.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mcb/mcb-core.c