diff options
author | David Gow <[email protected]> | 2023-05-10 13:38:31 +0800 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2023-05-11 18:17:35 -0600 |
commit | cdc87bda607518e70b6a6745cd593458d725b5a7 (patch) | |
tree | 790528bb739eeb915f028c997818c2fdb8c7cb2d /lib/mpi/mpi-sub-ui.c | |
parent | 410f07492eaef600fe817eef9fd272f6692a451a (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/linux-kselftest/[email protected]/
Reviewed-by: Sadiya Kazi <[email protected]>
Signed-off-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions