[SCSI] unify SCSI_IOCTL_SEND_COMMAND implementations
[deliverable/linux.git] / drivers / scsi / sg.c
index 7405d0df95dbc3317eafde865dbdb2937e96b47a..fcf9243dfa7dcc5e4423b1ed5fa6308809d6c6ab 100644 (file)
@@ -1044,7 +1044,7 @@ sg_ioctl(struct inode *inode, struct file *filp,
                        if (!sg_allow_access(opcode, sdp->device->type))
                                return -EPERM;
                }
-               return scsi_ioctl_send_command(sdp->device, p);
+               return sg_scsi_ioctl(filp, sdp->device->request_queue, NULL, p);
        case SG_SET_DEBUG:
                result = get_user(val, ip);
                if (result)
This page took 0.023676 seconds and 5 git commands to generate.