Commit 5618cf03 authored by Luis Chamberlain's avatar Luis Chamberlain Committed by Linus Torvalds

lib/test_kmod.c: fix rmmod double free

We free the misc device string twice on rmmod; fix this.  Without this
we cannot remove the module without crashing.

Link: default avatarLuis Chamberlain <>
Reported-by: default avatarRandy Dunlap <>
Reviewed-by: default avatarAndrew Morton <>
Cc: <>	[4.12+]
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent c7d7d620
......@@ -1214,7 +1214,6 @@ void unregister_test_dev_kmod(struct kmod_test_device *test_dev)
dev_info(test_dev->dev, "removing interface\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment