[SCSI] tgt: fix can_queue bug
[safe/jmp/linux-2.6] / drivers / scsi / scsi_tgt_lib.c
index 5851c8e..66c692f 100644 (file)
@@ -237,7 +237,7 @@ int scsi_tgt_alloc_queue(struct Scsi_Host *shost)
         * command as is recvd to userspace. uspace can then make
         * sure we do not overload the HBA
         */
-       q->nr_requests = shost->hostt->can_queue;
+       q->nr_requests = shost->can_queue;
        /*
         * We currently only support software LLDs so this does
         * not matter for now. Do we need this for the cards we support?