Commit 019f48dc authored by Colin Ian King's avatar Colin Ian King Committed by Matt Turner

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: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
parent f6feea56
...@@ -522,7 +522,7 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const char __user *, path, ...@@ -522,7 +522,7 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const char __user *, path,
break; break;
default: default:
retval = -EINVAL; retval = -EINVAL;
printk("osf_mount(%ld, %x)\n", typenr, flag); printk_ratelimited("osf_mount(%ld, %x)\n", typenr, flag);
} }
return retval; return retval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment