In the Linux kernel, the following vulnerability has been resolved:
kunit: Fix potential null dereference in kunitdevicedriver_test()
kunitkzalloc() may return a NULL pointer, dereferencing it without NULL check may lead to NULL dereference. Add a NULL check for teststate.