check_uninitialized_kobj: Add a new check
commit2d6f570feb3cf7b3390c2fe9202bf07939c05ef0
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Fri, 1 Dec 2023 07:57:38 +0000 (30 23:57 -0800)
committerDan Carpenter <dan.carpenter@linaro.org>
Fri, 1 Dec 2023 08:40:25 +0000 (1 11:40 +0300)
tree4bd6b7b7c3b930e9b8ac19aaba769bc8908711d7
parente352b370480d09a7466268d21a6452002e071003
check_uninitialized_kobj: Add a new check

This check complains when we reach kobject_put() or kobject_get() with
kobject->state_initialized unset.

This will eventually trigger a runtime WARN().

Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
check_list.h
check_uninitialized_kobj.c [new file with mode: 0644]