diff options
| author | Paul E. McKenney <[email protected]> | 2022-01-27 11:43:11 -0800 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2022-04-11 15:52:30 -0700 |
| commit | 4a230f8046454df18139ed1232f1a1e8a6dd36c5 (patch) | |
| tree | 8c90406b54704cd5bea6bab3c3ffe246f7e8152d /lib/test_fortify/write_overflow-strscpy.c | |
| parent | db8f1471c61336477e2bf74dcb00e67d650e6dea (diff) | |
srcu: Avoid NULL dereference in srcu_torture_stats_print()
You really shouldn't invoke srcu_torture_stats_print() after invoking
cleanup_srcu_struct(), but there is really no reason to get a
compiler-obfuscated per-CPU-variable NULL pointer dereference as the
diagnostic. This commit therefore checks for NULL ->sda and makes a
more polite console-message complaint in that case.
Co-developed-by: Neeraj Upadhyay <[email protected]>
Signed-off-by: Neeraj Upadhyay <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions