linux-mainline/samples
Honggyu Kim ddba1b6cf4 samples/damon: fix damon sample mtier for start failure
The damon_sample_mtier_start() can fail so we must reset the "enable"
parameter to "false" again for proper rollback.

In such cases, setting Y to "enable" then N triggers the similar crash
with mtier because damon sample start failed but the "enable" stays as Y.

Link: https://lkml.kernel.org/r/20250702000205.1921-4-honggyu.kim@sk.com
Fixes: 82a08bde3c ("samples/damon: implement a DAMON module for memory tiering")
Signed-off-by: Honggyu Kim <honggyu.kim@sk.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-07-09 21:07:55 -07:00
..
acrn
auxdisplay
binderfs
bpf Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-05-01 15:11:38 -07:00
cgroup
check-exec
configfs
connector treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
coresight
damon samples/damon: fix damon sample mtier for start failure 2025-07-09 21:07:55 -07:00
fanotify
fprobe
ftrace tracing: samples: Initialize trace_array_printk() with the correct function 2025-05-12 13:07:22 -04:00
hid
hidraw
hung_task samples: extend hung_task detector test with semaphore support 2025-05-11 17:54:08 -07:00
hw_breakpoint
kdb
kfifo
kmemleak
kobject
kprobes
landlock
livepatch samples/livepatch: add module descriptions 2025-04-11 17:32:38 -07:00
mei
nitro_enclaves
pfsm
pidfd
pktgen
qmi
rpmsg
rust drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
seccomp
timers
trace_events tracing: Verify event formats that have "%*p.." 2025-04-02 09:51:26 -04:00
trace_printk
tsm-mr sample/tsm-mr: Fix missing static for sample_report 2025-05-12 22:15:57 -07:00
uhid
user_events
v4l
vfio-mdev
vfs
watch_queue
watchdog
Kconfig - The 3 patch series "hung_task: extend blocking task stacktrace dump to 2025-05-31 19:12:53 -07:00
Makefile - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00