From: Markus Pfeiffer Date: Tue, 29 Jul 2014 18:12:13 +0000 (+0000) Subject: usb4bsd: set D_MPSAFE for usb devices X-Git-Tag: v4.1.0~367 X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff_plain/7d2c8674fda4e9097e837f494461a234faeeb54d usb4bsd: set D_MPSAFE for usb devices --- diff --git a/sys/bus/u4b/serial/usb_serial.c b/sys/bus/u4b/serial/usb_serial.c index d56148baa2..6fdc213a05 100644 --- a/sys/bus/u4b/serial/usb_serial.c +++ b/sys/bus/u4b/serial/usb_serial.c @@ -168,7 +168,7 @@ static d_write_t ucom_dev_write; static d_ioctl_t ucom_dev_ioctl; static struct dev_ops ucom_ops = { - { "ucom", 0, D_TTY }, + { "ucom", 0, D_MPSAFE | D_TTY }, .d_open = ucom_dev_open, .d_close = ucom_dev_close, .d_read = ucom_dev_read, diff --git a/sys/bus/u4b/usb_dev.c b/sys/bus/u4b/usb_dev.c index 9437e37b0b..abca6b5f6c 100644 --- a/sys/bus/u4b/usb_dev.c +++ b/sys/bus/u4b/usb_dev.c @@ -134,7 +134,7 @@ static usb_fifo_cmd_t usb_fifo_dummy_cmd; /* character device structure used for devices (/dev/ugenX.Y and /dev/uXXX) */ struct dev_ops usb_ops = { - { "usbdev", 0, D_MEM }, + { "usbdev", 0, D_MPSAFE | D_MEM }, .d_open = usb_open, .d_close = usb_close, .d_ioctl = usb_ioctl,