hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/samples/hw_breakpoint/data_breakpoint.c
....@@ -70,7 +70,9 @@
7070 static void __exit hw_break_module_exit(void)
7171 {
7272 unregister_wide_hw_breakpoint(sample_hbp);
73
- symbol_put(ksym_name);
73
+#ifdef CONFIG_MODULE_UNLOAD
74
+ __symbol_put(ksym_name);
75
+#endif
7476 printk(KERN_INFO "HW Breakpoint for %s write uninstalled\n", ksym_name);
7577 }
7678