Skip to content

Commit

Permalink
Merge pull request #280 from NOVBobLee/fix_err_handle
Browse files Browse the repository at this point in the history
Fix missing function call in error handling path
  • Loading branch information
jserv authored Nov 5, 2024
2 parents e3e2ee3 + 620bb0f commit 9c39011
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/hello-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ static int __init mymodule_init(void)

error = sysfs_create_file(mymodule, &myvariable_attribute.attr);
if (error) {
kobject_put(mymodule);
pr_info("failed to create the myvariable file "
"in /sys/kernel/mymodule\n");
}
Expand Down

0 comments on commit 9c39011

Please sign in to comment.