diff options
author | Florian Rommel <mail@florommel.de> | 2024-08-12 11:54:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-13 12:27:38 +0300 |
commit | 4a017c0163833fa3b0ebd2419973d30e9bd67e1e (patch) | |
tree | 12c220a78058b821f19050e2d8c5b359b09b16ed /crypto/lzo-rle.c | |
parent | 9ca12e50a48c100e3bda3e5152d2181f4a6649e2 (diff) | |
download | linux-4a017c0163833fa3b0ebd2419973d30e9bd67e1e.tar.xz |
kgdbts: fix hw_access_break_test
The test for access watchpoints (hw_access_break_test) was broken
(always failed) because the compiler optimized out the write to the
static helper variable (hw_break_val2), as it is never read anywhere.
This resulted in the target variable (hw_break_val) not being accessed
and thus the breakpoint not being triggered.
Remove the helper variable (hw_break_val2), and use READ_ONCE to force
reading the target variable (hw_break_val).
Signed-off-by: Florian Rommel <mail@florommel.de>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240812085459.291741-1-mail@florommel.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/lzo-rle.c')
0 files changed, 0 insertions, 0 deletions