diff options
Diffstat (limited to 'drivers/scsi/aacraid/aachba.c')
-rw-r--r-- | drivers/scsi/aacraid/aachba.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c index 43d6aff460d2..eee65c145cb8 100644 --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c | |||
@@ -690,7 +690,12 @@ static char *container_types[] = { | |||
690 | "Unknown" | 690 | "Unknown" |
691 | }; | 691 | }; |
692 | 692 | ||
693 | 693 | char * get_container_type(unsigned tindex) | |
694 | { | ||
695 | if (tindex >= ARRAY_SIZE(container_types)) | ||
696 | tindex = ARRAY_SIZE(container_types) - 1; | ||
697 | return container_types[tindex]; | ||
698 | } | ||
694 | 699 | ||
695 | /* Function: setinqstr | 700 | /* Function: setinqstr |
696 | * | 701 | * |