[media] media/rc: fix oops on unloading module rc-core
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Fri, 14 Dec 2012 10:02:48 +0000 (07:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Dec 2012 19:45:40 +0000 (17:45 -0200)
commita4bb6f353e287f51a52a347670fd60938a566c25
tree46322aeee9382370f7a41495145791783726c2ab
parentf7c3f5ce17a135610b114a17e917b5a53c4d07c4
[media] media/rc: fix oops on unloading module rc-core

During modiles initialization rc-core schedules work which calls
request_module() several times to load ir-*-decoder modules, but
it does not wait or cancel this work on module unloading.
rc-core should use request_module_nowait() instead, because it
anyway cannot load modules synchronously or cancel/wait pending
work on unloading, because this leads to deadlock on modules_mutex
between several "modprobe" processes.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ir-raw.c
drivers/media/rc/rc-core-priv.h