Skip to content

Commit ab2103b

Browse files
Greg Priceandersk
Greg Price
authored andcommitted
apply: finish cleanup_modules even if some rmmod gives error
E.g., we might have failed while invoking insmod, so the module is in @modules_loaded but not actually loaded. Signed-off-by: Greg Price <[email protected]>
1 parent 5276624 commit ab2103b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ksplice-apply.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ sub refcount {
187187

188188
sub cleanup_modules {
189189
foreach my $module (reverse(@modules_loaded)) {
190-
runval("rmmod", $module) if(!$nounload);
190+
runval_raw("rmmod", $module) if(!$nounload);
191191
}
192192
}
193193

0 commit comments

Comments
 (0)