Skip to content

Commit 8e33379

Browse files
committed
Merge tag 'gpio-fixes-for-v6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fix from Bartosz Golaszewski: - don't use sprintf() with non-constant format string * tag 'gpio-fixes-for-v6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: gpio: virtuser: avoid non-constant format string
2 parents bf80f13 + 3ae08e4 commit 8e33379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-virtuser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ static int gpio_virtuser_dbgfs_init_line_attrs(struct device *dev,
805805
return -ENOMEM;
806806

807807
data->ad.desc = desc;
808-
sprintf(data->consumer, id);
808+
strscpy(data->consumer, id);
809809
atomic_set(&data->irq, 0);
810810
atomic_set(&data->irq_count, 0);
811811

0 commit comments

Comments
 (0)