]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: use kmemdup in kunit_filter_tests(), take suite as const
authorDaniel Latypov <dlatypov@google.com>
Mon, 16 May 2022 16:54:46 +0000 (09:54 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 7 Jul 2022 23:42:53 +0000 (17:42 -0600)
commit06bc9fcda5fc6e2bbbc51569414d794a37000acf
tree08946cb6a013c300f1ba0ef5aeae7aba5feaede5
parent73892e25f76a019a046543edc82b881597b04b98
kunit: use kmemdup in kunit_filter_tests(), take suite as const

kmemdup() is easier than kmalloc() + memcpy(), per lkp bot.

Also make the input `suite` as const since we're now always making
copies after commit 99124ea5812c ("kunit: tool: allow filtering test
cases via glob").

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/executor.c