summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorDavid Vernet <void@manifault.com>2022-03-08 01:46:57 +0300
committerPaul E. McKenney <paulmck@kernel.org>2022-04-12 03:07:29 +0300
commit80dcee695143255261f30c7cc2a041ba413717a4 (patch)
tree5088a096d40e9fa33283a71aa59e6cb3b74577c3 /scripts/gdb/linux/utils.py
parent39b3cab92d3754e18b1f9b5de8158642145b2405 (diff)
downloadlinux-80dcee695143255261f30c7cc2a041ba413717a4.tar.xz
rcutorture: Add missing return and use __func__ in warning
The rcutorture module has an rcu_torture_writer task that repeatedly performs writes, synchronizations, and deletes. There is a corner-case check in rcu_torture_writer() wherein if nsynctypes is 0, a warning is issued and the task waits to be stopped via a call to torture_kthread_stopping() rather than performing any work. There should be a return statement following this call to torture_kthread_stopping(), as the intention with issuing the call to torture_kthread_stopping() in the first place is to avoid the rcu_torture_writer task from performing any work. Some of the work may even be dangerous to perform, such as potentially causing a #DE due to nsynctypes being used in a modulo operator when querying for sync updates to issue. This patch adds the missing return call. As a bonus, it also fixes a checkpatch warning that was emitted due to the WARN_ONCE() call using the name of the function rather than __func__. Signed-off-by: David Vernet <void@manifault.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions