summaryrefslogtreecommitdiff
path: root/samples/damon/wsse.c
diff options
context:
space:
mode:
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;