hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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