Message ID | 20240719114650.1551478-1-arnd@kernel.org |
---|---|
State | New |
Headers | show |
Series | gpio: virtuser: avoid non-constant format string | expand |
diff --git a/drivers/gpio/gpio-virtuser.c b/drivers/gpio/gpio-virtuser.c index 0e0d55da4f01..c55b72e426c7 100644 --- a/drivers/gpio/gpio-virtuser.c +++ b/drivers/gpio/gpio-virtuser.c @@ -805,7 +805,7 @@ static int gpio_virtuser_dbgfs_init_line_attrs(struct device *dev, return -ENOMEM; data->ad.desc = desc; - sprintf(data->consumer, id); + sprintf(data->consumer, "%s", id); atomic_set(&data->irq, 0); atomic_set(&data->irq_count, 0);