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>
This commit is contained in:
Colin Ian King 2021-12-13 18:56:25 +00:00 коммит произвёл Matt Turner
Родитель f6feea56f6
Коммит 019f48dc8e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -522,7 +522,7 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const char __user *, path,
break;
default:
retval = -EINVAL;
printk("osf_mount(%ld, %x)\n", typenr, flag);
printk_ratelimited("osf_mount(%ld, %x)\n", typenr, flag);
}
return retval;