Commit 4129a645 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

rocket: don't let random users reset the controller

parent 6df3526b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1399,6 +1399,9 @@ static int reset_rm2(struct r_port *info, void __user *arg)
{
	int reset;

	if (!capable(CAP_SYS_ADMIN))
		return -EPERM;

	if (copy_from_user(&reset, arg, sizeof (int)))
		return -EFAULT;
	if (reset)