summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_dev.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-02-27 22:12:15 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-02-27 22:12:15 +0000
commit50230f983b60eb74345926f20c7248a215ad329a (patch)
treebaf73e62709e6da0ff82ca62568b38760cb8b741 /sys/dev/usb/usb_dev.c
parenta09d8d7315071ef1b05163ea3cb3e0526ff89e2d (diff)
Notes
Diffstat (limited to 'sys/dev/usb/usb_dev.c')
-rw-r--r--sys/dev/usb/usb_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_dev.c b/sys/dev/usb/usb_dev.c
index 6d385ede9801..ae351847a813 100644
--- a/sys/dev/usb/usb_dev.c
+++ b/sys/dev/usb/usb_dev.c
@@ -1466,7 +1466,7 @@ usb2_static_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
*(int *)data = usb2_template;
break;
case USB_SET_TEMPLATE:
- err = priv_check(curthread, PRIV_ROOT);
+ err = priv_check(curthread, PRIV_DRIVER);
if (err)
break;
usb2_template = *(int *)data;