diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index dd092cc8e..fc5c1059e 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -2378,7 +2378,7 @@ static int scst_dev_handler_type_info_show(struct seq_file *seq, void *v) TRACE_ENTRY(); seq_printf(seq, "%d - %s\n", dev_type->type, - dev_type->type > (int)ARRAY_SIZE(scst_proc_dev_handler_type) + dev_type->type >= (int)ARRAY_SIZE(scst_proc_dev_handler_type) ? "unknown" : scst_proc_dev_handler_type[dev_type->type]); TRACE_EXIT();