Skip to content

Commit

Permalink
tests: fix rmmod of test kmod
Browse files Browse the repository at this point in the history
Thanks to commit c08f6be ("vmtest: kbuild: add
CONFIG_MODULE_UNLOAD=y"), I was finally able to try unloading the test
kernel module and found a trivial copy-and-paste error. Fix it.

Fixes: 42e7d47 ("drgn.helpers.linux.mm: add compound page helpers")
Signed-off-by: Omar Sandoval <osandov@osandov.com>
  • Loading branch information
osandov committed Dec 2, 2022
1 parent 174b797 commit 32dc31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/linux_kernel/kmod/drgn_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int drgn_test_mm_init(void)
static void drgn_test_mm_exit(void)
{
if (drgn_test_compound_page)
__free_pages(drgn_test_page, 1);
__free_pages(drgn_test_compound_page, 1);
if (drgn_test_page)
__free_pages(drgn_test_page, 0);
}
Expand Down

0 comments on commit 32dc31a

Please sign in to comment.