Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ksm05: Fix cleanup on mising KSM run sys file
If /sys/kernel/mm/ksm/run is not present the cleanup will stil try to restore it's value and the test will fail with a warning: tst_test.c:980: INFO: Timeout per run is 0h 15m 00s ksm05.c:98: CONF: KSM configuration is not enabled safe_file_ops.c:238: WARN: Failed to open FILE '/sys/kernel/mm/ksm/run' at ksm05.c:110 This patch changes the test to attempt to restore the value only if we were able to read it first. Signed-off-by: Cyril Hrubis <chrubis@suse.cz> Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
- Loading branch information