mm/damon/core-test: add a test for damos_new_filter()
authorSeongJae Park <sj@kernel.org>
Sat, 29 Jul 2023 20:37:33 +0000 (20:37 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:33 +0000 (13:37 -0700)
commit2a158e956b98e0c5f37b5ce9953048654348ad6b
tree7d215c4cf0dfa47761882e4f626b0e894e8319af
parentca39c5e7d10f09983293f064caa447690cb3ec92
mm/damon/core-test: add a test for damos_new_filter()

damos_new_filter() was having a bug that not initializing ->list field of
the returning damos_filter struct, which results in access to
uninitialized memory.  Add a unit test for the function.

Link: https://lkml.kernel.org/r/20230729203733.38949-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core-test.h