]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] scsi_transport_fc: fix FC_HOST_NUM_ATTRS
authorAndreas Herrmann <aherrman@de.ibm.com>
Thu, 9 Mar 2006 15:37:49 +0000 (16:37 +0100)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 9 Mar 2006 16:00:59 +0000 (11:00 -0500)
In the past I added an host attribute but unfortunately
I forgot to increase FC_HOST_NUM_ATTRS.
This is fixed with the patch. Otherwise an fibre channel
lld might run into
      BUG_ON(count > FC_HOST_NUM_ATTRS);
in fc_attach_transport().

Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_fc.c

index 929032e370db6647d595b36c3f0531fc32472587..13ea64119b730532ab0ee447c50e1ec7ced08b6d 100644 (file)
@@ -223,7 +223,7 @@ static void fc_rport_terminate(struct fc_rport  *rport);
  */
 #define FC_STARGET_NUM_ATTRS   3
 #define FC_RPORT_NUM_ATTRS     9
-#define FC_HOST_NUM_ATTRS      16
+#define FC_HOST_NUM_ATTRS      17
 
 struct fc_internal {
        struct scsi_transport_template t;