Skip to content

Commit 57c06b6

Browse files
committed
Merge tag 'modules-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux
Pull module update from Luis Chamberlain: "There is only one patch which qualifies for modules for v5.18-rc1 and its a small fix from Dan Carpenter for lib/test_kmod module. The rest of the changes are too major and landed in modules-testing too late for inclusion. The good news is that most of the major changes for v5.19 is going to be tested very early through linux-next. This simple fix is all we have for modules for v5.18-rc1" * tag 'modules-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux: lib/test: use after free in register_test_dev_kmod()
2 parents 74164d2 + dc0ce6c commit 57c06b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/test_kmod.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,7 @@ static struct kmod_test_device *register_test_dev_kmod(void)
11491149
if (ret) {
11501150
pr_err("could not register misc device: %d\n", ret);
11511151
free_test_dev_kmod(test_dev);
1152+
test_dev = NULL;
11521153
goto out;
11531154
}
11541155

0 commit comments

Comments
 (0)