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)
commit4d2ec8575357d4afc965564e2e910a72fe608d39
treee35ecd261822a8dc107b5870031c862146c92ea7
parent7bc364097a89a0a9a5e5e4989d6b3e6fb2027a9e
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