]> Zhao Yanbai Git Server - minix.git/commitdiff
block ioctls: pass request number
authorBen Gras <ben@minix3.org>
Wed, 18 Apr 2012 09:01:15 +0000 (11:01 +0200)
committerBen Gras <ben@minix3.org>
Wed, 18 Apr 2012 09:01:15 +0000 (11:01 +0200)
servers/vfs/device.c

index 01ee494cb1ddd1e926dfba44e0b0297ff5db4947..f08f7df66271a43f2446f604ec3003b4ae0f6ac9 100644 (file)
@@ -175,7 +175,7 @@ static int bdev_ioctl(dev_t dev, endpoint_t proc_e, int req, void *buf)
 
   /* Set up a grant if necessary. */
   op = VFS_DEV_IOCTL;
-  (void) safe_io_conversion(dp->dmap_driver, &gid, &op, &proc_e, &buf, 0,
+  (void) safe_io_conversion(dp->dmap_driver, &gid, &op, &proc_e, &buf, req,
        &dummy);
 
   /* Set up the message passed to the task. */