diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-27 21:54:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-27 21:54:06 +0200 |
commit | 8e333791d4605dbce611c22f71a86721c9afc336 (patch) | |
tree | f5d18c9530b6af74d966faf3f351c7566ed65baf /drivers/gpio | |
parent | Merge tag 'devicetree-fixes-for-6.11-1' of git://git.kernel.org/pub/scm/linux... (diff) | |
parent | gpio: virtuser: avoid non-constant format string (diff) | |
download | linux-8e333791d4605dbce611c22f71a86721c9afc336.tar.xz linux-8e333791d4605dbce611c22f71a86721c9afc336.zip |
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
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-virtuser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-virtuser.c b/drivers/gpio/gpio-virtuser.c index 0e0d55da4f01..ccc47ea0b3e1 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); + strscpy(data->consumer, id); atomic_set(&data->irq, 0); atomic_set(&data->irq_count, 0); |