lkmpg/examples
Bob Lee 620bb0f5f8
Fix missing function call in error handling path
Previously, the code did not call kobject_put when sysfs_create_file
failed, leading to a potential memory leak. This commit adds the missing
kobject_put to ensure proper resource cleanup.
2024-11-05 19:48:42 +08:00
..
other Fix incoherent ioctl examples (#139) 2022-02-21 00:53:29 +08:00
.clang-format CI: Enforce newline at end of files 2024-06-21 16:39:05 +08:00
bh_threaded.c Fix style 2024-04-21 01:12:33 +08:00
bottomhalf.c Fix typo (#240) 2023-10-08 17:14:09 +08:00
chardev.c Remove module * parameter from class_create() (#222) 2023-09-03 02:24:35 +08:00
chardev.h Fix incoherent ioctl examples (#139) 2022-02-21 00:53:29 +08:00
chardev2.c Fix typos via codespell 2024-10-04 19:08:50 +03:00
completions.c Simplify code by removal of outer struct 2023-09-28 06:02:39 +00:00
devicemodel.c examples: Add missing __init/__exit (#209) 2023-07-05 09:44:21 +08:00
example_atomic.c Add newline to last pr_info to force dmesg to flush 2023-09-28 15:32:50 +00:00
example_mutex.c examples: Add missing __init/__exit (#209) 2023-07-05 09:44:21 +08:00
example_rwlock.c examples: Add missing __init/__exit (#209) 2023-07-05 09:44:21 +08:00
example_spinlock.c examples: Add missing __init/__exit (#209) 2023-07-05 09:44:21 +08:00
example_tasklet.c examples: Add missing __init/__exit (#209) 2023-07-05 09:44:21 +08:00
hello-1.c treewide: Replace kernel.h by printk.h 2023-02-23 12:54:30 +02:00
hello-2.c treewide: Replace kernel.h by printk.h 2023-02-23 12:54:30 +02:00
hello-3.c treewide: Replace kernel.h by printk.h 2023-02-23 12:54:30 +02:00
hello-4.c treewide: Replace kernel.h by printk.h 2023-02-23 12:54:30 +02:00
hello-5.c Fix typo 2024-04-16 02:38:07 +08:00
hello-sysfs.c Fix missing function call in error handling path 2024-11-05 19:48:42 +08:00
intrpt.c treewide: Replace kernel.h by printk.h 2023-02-23 12:54:30 +02:00
ioctl.c Fix Linux v6.5 compatibility 2024-04-16 06:19:52 +08:00
kbleds.c kbleds: Replace magic with driver_name 2023-08-10 08:56:19 +08:00
Makefile Provide a tasklet-free example 2024-04-21 01:09:28 +08:00
print_string.c Fix typo, grammar and remove duplicated words 2022-03-07 16:56:13 +08:00
procfs1.c Remove the redundant code 2024-10-06 14:25:49 +08:00
procfs2.c Fix a weird behavior of a function 2024-10-07 12:05:43 +08:00
procfs3.c procfs: Remove unnecessary cleanup on proc_create failure 2023-07-23 18:41:46 +08:00
procfs4.c Fix typo (#240) 2023-10-08 17:14:09 +08:00
sched.c Replace schedule_work with queue_work 2023-10-07 16:32:26 +02:00
sleep.c Fix typo 2024-10-17 02:23:21 +08:00
start.c Apply editorial changes 2021-08-08 01:24:59 +08:00
static_key.c Ensure Linux v6.5 compatibility 2024-04-16 06:24:06 +08:00
stop.c Fix the warnings raised by Sparse (#92) 2021-09-04 17:53:29 +08:00
syscall-steal.c Apply editorial changes 2024-10-05 12:01:45 +08:00
vinput.c Fix potential memory leak in vinput 2024-10-25 12:22:29 +08:00
vinput.h Add description of sysfs attribute 2022-04-19 01:54:24 +08:00
vkbd.c Add description of sysfs attribute 2022-04-19 01:54:24 +08:00