aboutsummaryrefslogtreecommitdiffstats
path: root/samples/damon/wsse.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2025-09-21 14:19:36 -0700
committerAndrew Morton <akpm@linux-foundation.org>2025-09-21 14:19:36 -0700
commitbc9950b56f16e9cc53879118bfddcc175355a75a (patch)
tree484cc703bc50a82af45288fffdf92c8a03debf27 /samples/damon/wsse.c
parentmaple_tree: testing fix for spanning store on 32b (diff)
parentzram: fix slot write race condition (diff)
downloadlinux-bc9950b56f16e9cc53879118bfddcc175355a75a.tar.gz
linux-bc9950b56f16e9cc53879118bfddcc175355a75a.zip
Merge branch 'mm-hotfixes-stable' into mm-stable in order to pick up
changes required by mm-stable material: hugetlb and damon.
Diffstat (limited to 'samples/damon/wsse.c')
-rw-r--r--samples/damon/wsse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/samples/damon/wsse.c b/samples/damon/wsse.c
index da052023b099..21eaf15f987d 100644
--- a/samples/damon/wsse.c
+++ b/samples/damon/wsse.c
@@ -118,6 +118,9 @@ static int damon_sample_wsse_enable_store(
return 0;
if (enabled) {
+ if (!init_called)
+ return 0;
+
err = damon_sample_wsse_start();
if (err)
enabled = false;