diff options
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r-- | drivers/scsi/hpsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 42295c49682f..2764cb605693 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -776,6 +776,8 @@ static int hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, | |||
776 | #define DEVICE_CHANGED 1 | 776 | #define DEVICE_CHANGED 1 |
777 | #define DEVICE_SAME 2 | 777 | #define DEVICE_SAME 2 |
778 | for (i = 0; i < haystack_size; i++) { | 778 | for (i = 0; i < haystack_size; i++) { |
779 | if (haystack[i] == NULL) /* previously removed. */ | ||
780 | continue; | ||
779 | if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { | 781 | if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { |
780 | *index = i; | 782 | *index = i; |
781 | if (device_is_the_same(needle, haystack[i])) | 783 | if (device_is_the_same(needle, haystack[i])) |