diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/rocket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c index cbee71bab017..72f289279d8f 100644 --- a/drivers/char/rocket.c +++ b/drivers/char/rocket.c | |||
@@ -1399,6 +1399,9 @@ static int reset_rm2(struct r_port *info, void __user *arg) | |||
1399 | { | 1399 | { |
1400 | int reset; | 1400 | int reset; |
1401 | 1401 | ||
1402 | if (!capable(CAP_SYS_ADMIN)) | ||
1403 | return -EPERM; | ||
1404 | |||
1402 | if (copy_from_user(&reset, arg, sizeof (int))) | 1405 | if (copy_from_user(&reset, arg, sizeof (int))) |
1403 | return -EFAULT; | 1406 | return -EFAULT; |
1404 | if (reset) | 1407 | if (reset) |