modprobe: ignore custom remove commands if module_in_kernel() doesnt work
commit804e5b4039f808b44beb04bc0fa11f47d5f68621
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Wed, 30 Sep 2009 16:30:41 +0000 (30 17:30 +0100)
committerAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 1 Oct 2009 09:15:40 +0000 (1 10:15 +0100)
treec73f8e929d2e19d8e29afa0927be2ff4c5779605
parenta23b80e3d3f18a88630a6f01f06d4e5ba6acec43
modprobe: ignore custom remove commands if module_in_kernel() doesnt work

If we're not sure whether a module is present, we can't be sure that it
is safe to run its remove command.

This patch follows logically from the previous two patches.  It provides
the same safeguard which has been added for install commands, in case
/sys/module/<module>/initstate is not available.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
modprobe.c