]> www.infradead.org Git - users/dwmw2/linux.git/commit
staging: gpib: use proper format string in request_module
authorArnd Bergmann <arnd@arndb.de>
Wed, 16 Oct 2024 11:15:20 +0000 (11:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2024 07:57:04 +0000 (09:57 +0200)
commitd76e1402ec453cfbface5240f74c783ef0aa1985
treeb30b13abf77fee87c80916698f09728bf19055f1
parent2c9f5d8c6ece91ecd33350749230494d224550f1
staging: gpib: use proper format string in request_module

Using a string variable as a format causes a -Wformat-security
warning. Since the only use of the temporary module_string[] is to hold
the sprintf() output, just pass the format string and argument directly
to request_module().

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20241016111521.1143191-7-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/common/gpib_os.c