preload_delete_name() needs to use the same path munging that the other
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 26 May 2004 08:32:41 +0000 (08:32 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 26 May 2004 08:32:41 +0000 (08:32 +0000)
commit2bc3312ade875b2db4e08ce4a7e3332d127a0937
treec1a7df20451222cc6d0544d038656971c259fb3e
parent715f92b6df2192ef6c7bb9c4e79f0fb70baf2526
preload_delete_name() needs to use the same path munging that the other
preload routines use, or it may not find the preloaded module.  Failure
to delete a preloaded module that is being unloaded can result in the
preloaded module being relocated twice if a later kldload occurs.

Found-by: Hiten Pandya <hmp@backplane.com>
sys/kern/subr_module.c