]> git.baikalelectronics.ru Git - kernel.git/commit
export: fix string handling of namespace in EXPORT_SYMBOL_NS
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 09:04:42 +0000 (11:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 May 2022 07:52:41 +0000 (09:52 +0200)
commitc121b35a5b638e0beee0a8b5f7bd9ee0689efa38
tree91d2b07e62e905c939ca62877c142365b2e8f434
parentc1389a056d890741ccfa84d71bc466ad6970e01f
export: fix string handling of namespace in EXPORT_SYMBOL_NS

Commit c1391baa006f ("export: avoid code duplication in
include/linux/export.h") broke the ability for a defined string to be
used as a namespace value.  Fix this up by using stringify to properly
encode the namespace name.

Fixes: c1391baa006f ("export: avoid code duplication in include/linux/export.h")
Cc: Miroslav Benes <mbenes@suse.cz>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Jessica Yu <jeyu@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Cc: Matthias Maennich <maennich@google.com>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20220427090442.2105905-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/export.h