]> err.no Git - linux-2.6/commitdiff
[SCSI] Make host_no an unsigned int
authorMatthew Wilcox <matthew@wil.cx>
Tue, 15 Jul 2008 20:54:16 +0000 (14:54 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 26 Jul 2008 19:14:50 +0000 (15:14 -0400)
Daniel Debonzi reports that he has managed to wrap host_no.  Increasing
the number of host numbers available to 32-bit from 16-bit allows the
problem to be evaded for another hundred years.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
include/scsi/scsi_host.h

index a594bac4a77db2b5f311470cc2e2324d5cf6bedb..d3b1e06fb142202685922c707099253532ca068d 100644 (file)
@@ -547,7 +547,7 @@ struct Scsi_Host {
        unsigned int host_failed;          /* commands that failed. */
        unsigned int host_eh_scheduled;    /* EH scheduled without command */
     
-       unsigned short host_no;  /* Used for IOCTL_GET_IDLUN, /proc/scsi et al. */
+       unsigned int host_no;  /* Used for IOCTL_GET_IDLUN, /proc/scsi et al. */
        int resetting; /* if set, it means that last_reset is a valid value */
        unsigned long last_reset;