diff options
Diffstat (limited to 'kernel/livepatch')
| -rw-r--r-- | kernel/livepatch/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c index 6f6387912da7..ce42d3b930dc 100644 --- a/kernel/livepatch/core.c +++ b/kernel/livepatch/core.c | |||
| @@ -911,6 +911,12 @@ static int klp_init(void) | |||
| 911 | { | 911 | { |
| 912 | int ret; | 912 | int ret; |
| 913 | 913 | ||
| 914 | ret = klp_check_compiler_support(); | ||
| 915 | if (ret) { | ||
| 916 | pr_info("Your compiler is too old; turning off.\n"); | ||
| 917 | return -EINVAL; | ||
| 918 | } | ||
| 919 | |||
| 914 | ret = register_module_notifier(&klp_module_nb); | 920 | ret = register_module_notifier(&klp_module_nb); |
| 915 | if (ret) | 921 | if (ret) |
| 916 | return ret; | 922 | return ret; |
