|
@@ -1359,6 +1359,13 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
|
|
"Check shelf dip switches.\n");
|
|
"Check shelf dip switches.\n");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (h->minor >= NPERSHELF) {
|
|
|
|
+ pr_err("aoe: e%ld.%d %s, %d\n",
|
|
|
|
+ aoemajor, h->minor,
|
|
|
|
+ "slot number larger than the maximum",
|
|
|
|
+ NPERSHELF-1);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
sysminor = SYSMINOR(aoemajor, h->minor);
|
|
sysminor = SYSMINOR(aoemajor, h->minor);
|
|
if (sysminor * AOE_PARTITIONS + AOE_PARTITIONS > MINORMASK) {
|
|
if (sysminor * AOE_PARTITIONS + AOE_PARTITIONS > MINORMASK) {
|