Skip to content

Commit a4a39c8

Browse files
andy-shevKAGA-KOKO
authored andcommitted
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/
1 parent 58eb572 commit a4a39c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void irq_debugfs_copy_devname(int irq, struct device *dev)
225225

226226
void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc)
227227
{
228-
char name [10];
228+
char name [12];
229229

230230
if (!irq_dir || !desc || desc->debugfs_file)
231231
return;

0 commit comments

Comments
 (0)