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:
Родитель
82f5e5cea5
Коммит
e72b9da083
|
@ -2054,7 +2054,7 @@ static int xillybus_init_chrdev(struct xilly_endpoint *endpoint,
|
||||||
NULL,
|
NULL,
|
||||||
MKDEV(major, i),
|
MKDEV(major, i),
|
||||||
NULL,
|
NULL,
|
||||||
devname);
|
"%s", devname);
|
||||||
|
|
||||||
if (IS_ERR(device)) {
|
if (IS_ERR(device)) {
|
||||||
pr_warn("xillybus: Failed to create %s "
|
pr_warn("xillybus: Failed to create %s "
|
||||||
|
|
Загрузка…
Ссылка в новой задаче