mirror of
https://github.com/dynup/kpatch
synced 2025-02-04 19:21:33 +00:00
code review fix
Return 0 on rmmod error.
This commit is contained in:
parent
e1890e627a
commit
40fbb4effc
@ -114,12 +114,11 @@ unload_module () {
|
||||
echo "disabling patch module: $PATCH"
|
||||
echo 0 > $ENABLED || die "can't disable $PATCH"
|
||||
fi
|
||||
echo "unloading patch module: $PATCH"
|
||||
rmmod $PATCH 2> /dev/null
|
||||
|
||||
echo "unloading patch module: $PATCH"
|
||||
# ignore any error here because rmmod can fail if the module used
|
||||
# KPATCH_FORCE_UNSAFE.
|
||||
return
|
||||
rmmod $PATCH 2> /dev/null || return 0
|
||||
}
|
||||
|
||||
unload_disabled_modules() {
|
||||
|
Loading…
Reference in New Issue
Block a user