summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdevs_data.h
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2010-02-19 12:40:47 +0000
committerpooka <pooka@NetBSD.org>2010-02-19 12:40:47 +0000
commit3dbf8271ce793bbc60739b0bba95bcb15a7585ea (patch)
tree71f8496764ce16b7281449071a581aebc86ffe81 /sys/dev/usb/usbdevs_data.h
parentbf551971e80043db51f39a631bddd983673668ee (diff)
Replace USB_GET_SC() instances with USB_GET_SC_OPEN(). The latter
is exactly like the former, except it returns with ENXIO if sc is NULL instead of continuing on to use it. Most of the time this is handled by the fd layer and you get EBADF, but sometimes it's possible to race into the device method for whatever reason and you get a kernel panic. I have no idea what the "whatever reason" might be.
Diffstat (limited to 'sys/dev/usb/usbdevs_data.h')
0 files changed, 0 insertions, 0 deletions