diff options
author | jonathan <jonathan@FreeBSD.org> | 2011-07-08 12:19:25 +0000 |
---|---|---|
committer | jonathan <jonathan@FreeBSD.org> | 2011-07-08 12:19:25 +0000 |
commit | 7c2c72616768c7ffbdaafd9240b96c6ec37b1349 (patch) | |
tree | c761f9852a1899a271707f53732d6ec943f6ce4a /sys/dev/usb/usb_request.c | |
parent | f07a2b912b2fbaa99bfe57e02f3d2c72ce60ff81 (diff) | |
download | FreeBSD-src-7c2c72616768c7ffbdaafd9240b96c6ec37b1349.zip FreeBSD-src-7c2c72616768c7ffbdaafd9240b96c6ec37b1349.tar.gz |
Fix the "passability" test in fdcopy().
Rather than checking to see if a descriptor is a kqueue, check to see if
its fileops flags include DFLAG_PASSABLE.
At the moment, these two tests are equivalent, but this will change with
the addition of capabilities that wrap kqueues but are themselves of type
DTYPE_CAPABILITY. We already have the DFLAG_PASSABLE abstraction, so let's
use it.
This change has been tested with [the newly improved] tools/regression/kqueue.
Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc
Diffstat (limited to 'sys/dev/usb/usb_request.c')
0 files changed, 0 insertions, 0 deletions