|
@@ -75,7 +75,7 @@ param_setup(char *str)
|
|
else if(!strncmp(pos, "id:", 3)) {
|
|
else if(!strncmp(pos, "id:", 3)) {
|
|
if(slot == -1) {
|
|
if(slot == -1) {
|
|
printk(KERN_WARNING "sim710: Must specify slot for id parameter\n");
|
|
printk(KERN_WARNING "sim710: Must specify slot for id parameter\n");
|
|
- } else if(slot > MAX_SLOTS) {
|
|
|
|
|
|
+ } else if(slot >= MAX_SLOTS) {
|
|
printk(KERN_WARNING "sim710: Illegal slot %d for id %d\n", slot, val);
|
|
printk(KERN_WARNING "sim710: Illegal slot %d for id %d\n", slot, val);
|
|
} else {
|
|
} else {
|
|
id_array[slot] = val;
|
|
id_array[slot] = val;
|