summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_dev.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-08-20 20:23:28 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-08-20 20:23:28 +0000
commit247db0748a75747673b753a6af3e2c39dfae88ed (patch)
treefb1ae4beb655a18383d166a5eee425754fb8eeb6 /sys/dev/usb/usb_dev.c
parent2c68e2fb1e2cb7386b8863b4049198be949161e1 (diff)
Notes
Diffstat (limited to 'sys/dev/usb/usb_dev.c')
-rw-r--r--sys/dev/usb/usb_dev.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/usb/usb_dev.c b/sys/dev/usb/usb_dev.c
index b7c6553db75c..cba8919255c8 100644
--- a/sys/dev/usb/usb_dev.c
+++ b/sys/dev/usb/usb_dev.c
@@ -1040,14 +1040,9 @@ usb_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int fflag, struct thread*
* Performance optimisation: We try to check for IOCTL's that
* don't need the USB reference first. Then we grab the USB
* reference if we need it!
- * Note that some ioctl_post handlers would need to run with the
- * newbus lock held. It cannot be acquired later because it can
- * introduce a LOR, so acquire it here.
*/
- newbus_xlock();
err = usb_ref_device(cpd, &refs, 0 /* no uref */ );
if (err) {
- newbus_xunlock();
return (ENXIO);
}
fflags = cpd->fflags;
@@ -1081,7 +1076,6 @@ usb_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int fflag, struct thread*
}
done:
usb_unref_device(cpd, &refs);
- newbus_xunlock();
return (err);
}