]> git.baikalelectronics.ru Git - kernel.git/commit
dyndbg: make ddebug_tables list LIFO for add/remove_module
authorJim Cromie <jim.cromie@gmail.com>
Sun, 19 Jul 2020 23:10:50 +0000 (17:10 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2020 15:00:09 +0000 (17:00 +0200)
commit65650a666c9d14ed616fb4af23591933a32605e2
treeb331745383a9e0d0ffc7f28b3385f7dda59c8622
parent732361072f5f097e71da8ecba3245279b9fc935b
dyndbg: make ddebug_tables list LIFO for add/remove_module

loadable modules are the last in on this list, and are the only
modules that could be removed.  ddebug_remove_module() searches from
head, but ddebug_add_module() uses list_add_tail().  Change it to
list_add() for a micro-optimization.

Acked-by: <jbaron@akamai.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Link: https://lore.kernel.org/r/20200719231058.1586423-11-jim.cromie@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/dynamic_debug.c