mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 17:06:48 +07:00
staging: xillybus: fix format string usage
Makes sure format string cannot leak into device_create() call. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
82f5e5cea5
commit
e72b9da083
@ -2054,7 +2054,7 @@ static int xillybus_init_chrdev(struct xilly_endpoint *endpoint,
|
||||
NULL,
|
||||
MKDEV(major, i),
|
||||
NULL,
|
||||
devname);
|
||||
"%s", devname);
|
||||
|
||||
if (IS_ERR(device)) {
|
||||
pr_warn("xillybus: Failed to create %s "
|
||||
|
Loading…
Reference in New Issue
Block a user