usb4bsd: set D_MPSAFE for usb devices
authorMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Tue, 29 Jul 2014 18:12:13 +0000 (18:12 +0000)
committerMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Tue, 29 Jul 2014 18:12:13 +0000 (18:12 +0000)
sys/bus/u4b/serial/usb_serial.c
sys/bus/u4b/usb_dev.c

index d56148b..6fdc213 100644 (file)
@@ -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,
index 9437e37..abca6b5 100644 (file)
@@ -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,