diff options
author | David Gow <davidgow@google.com> | 2023-05-10 08:38:31 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-05-12 03:17:35 +0300 |
commit | cdc87bda607518e70b6a6745cd593458d725b5a7 (patch) | |
tree | 790528bb739eeb915f028c997818c2fdb8c7cb2d /arch/m68k/configs | |
parent | 410f07492eaef600fe817eef9fd272f6692a451a (diff) | |
download | linux-cdc87bda607518e70b6a6745cd593458d725b5a7.tar.xz |
Documentation: kunit: Warn that exit functions run even if init fails
KUnit's exit functions will run even if the corresponding init function
fails. It's easy, when writing an exit function, to assume the init
function succeeded, and (for example) access uninitialised memory or
dereference NULL pointers.
Note that this case exists and should be handled in the documentation.
Suggested-by: Benjamin Berg <benjamin@sipsolutions.net>
Link: https://lore.kernel.org/linux-kselftest/a39af0400abedb2e9b31d84c37551cecc3eed0e1.camel@sipsolutions.net/
Reviewed-by: Sadiya Kazi <sadiyakazi@google.com>
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'arch/m68k/configs')
0 files changed, 0 insertions, 0 deletions