From: FUJITA Tomonori Date: Fri, 31 Aug 2007 17:02:16 +0000 (+0900) Subject: [SCSI] tgt: fix can_queue bug X-Git-Tag: v2.6.24-rc1~1290^2~141 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8184fe9b6e8928c8d5be3e2a1326b8b9183e409d;p=karo-tx-linux.git [SCSI] tgt: fix can_queue bug should use host->can_queue instead of host->hostt->can_queue. Signed-off-by: FUJITA Tomonori Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/scsi_tgt_lib.c b/drivers/scsi/scsi_tgt_lib.c index 5851c8e53e40..66c692ffa305 100644 --- a/drivers/scsi/scsi_tgt_lib.c +++ b/drivers/scsi/scsi_tgt_lib.c @@ -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?