Set max_cmd_len correcty.
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 22 Oct 2009 15:17:38 +0000 (15:17 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 22 Oct 2009 15:17:38 +0000 (15:17 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1242 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst_local/scst_local.c

index 5c1f615..dafb8d1 100644 (file)
@@ -974,6 +974,8 @@ static int scst_fake_lld_driver_probe(struct device *dev)
                hpnt->max_id = scst_local_num_tgts;
        hpnt->max_lun = scst_local_max_luns - 1;
 
+       hpnt->max_cmd_len = 260;
+
        ret = scsi_add_host(hpnt, &scst_lcl_host->dev);
        if (ret) {
                printk(KERN_ERR "%s: scsi_add_host failed\n", __func__);