Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

alpha: osf_sys: reduce kernel log spamming on invalid osf_mount call typenr

Calling the osf_mount system call with an invalid typenr value will
spam the kernel log with error messages. Reduce the spamming by making
it a ratelimited printk. Issue found when exercising with the stress-ng
enosys system call stressor.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>

authored by

Colin Ian King and committed by
Matt Turner
019f48dc f6feea56

+1 -1
+1 -1
arch/alpha/kernel/osf_sys.c
··· 522 522 break; 523 523 default: 524 524 retval = -EINVAL; 525 - printk("osf_mount(%ld, %x)\n", typenr, flag); 525 + printk_ratelimited("osf_mount(%ld, %x)\n", typenr, flag); 526 526 } 527 527 528 528 return retval;