diff options
author | 2025-05-15 11:55:16 +0300 | |
---|---|---|
committer | 2025-05-15 16:28:09 +0200 | |
commit | a4a39c81e1043b153bde3ef5cb3cf94222ffd918 (patch) | |
tree | 75a061b42b9e3f5d04b1b80095348befcee1d625 /kernel | |
parent | genirq/manage: Use the correct lock guard in irq_set_irq_wake() (diff) | |
download | wireguard-linux-a4a39c81e1043b153bde3ef5cb3cf94222ffd918.tar.xz wireguard-linux-a4a39c81e1043b153bde3ef5cb3cf94222ffd918.zip |
genirq: Bump the size of the local variable for sprintf()
GCC is not happy about a sprintf() call on a buffer that might be too small
for the given formatting string.
kernel/irq/debugfs.c:233:26: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
Fix this by bumping the size of the local variable for sprintf().
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250515085516.2913290-1-andriy.shevchenko@linux.intel.com
Closes: https://lore.kernel.org/oe-kbuild-all/202505151057.xbyXAbEn-lkp@intel.com/
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/debugfs.c b/kernel/irq/debugfs.c index 3d6a5b3cfaf3..3527defd2890 100644 --- a/kernel/irq/debugfs.c +++ b/kernel/irq/debugfs.c @@ -225,7 +225,7 @@ void irq_debugfs_copy_devname(int irq, struct device *dev) void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc) { - char name [10]; + char name [12]; if (!irq_dir || !desc || desc->debugfs_file) return; |