Skip to content

Commit

Permalink
Merge tag 'gpio-fixes-for-v6.11-rc1' of git://git.kernel.org/pub/scm/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
torvalds committed Jul 27, 2024
2 parents bf80f13 + 3ae08e4 commit 8e33379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-virtuser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
strscpy(data->consumer, id);
atomic_set(&data->irq, 0);
atomic_set(&data->irq_count, 0);

Expand Down

0 comments on commit 8e33379

Please sign in to comment.