Skip to content
Commit dc0ce6cc authored by Dan Carpenter's avatar Dan Carpenter Committed by Luis Chamberlain
Browse files

lib/test: use after free in register_test_dev_kmod()



The "test_dev" pointer is freed but then returned to the caller.

Fixes: d9c6a72d ("kmod: add test driver to stress test the module loader")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 13776ebb
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