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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;