Commit e15e3b5e authored by Stephen Rothwell's avatar Stephen Rothwell

Merge branch 'quilt/aoe'

parents 56658e0b c3643395
......@@ -982,8 +982,12 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
}
sysminor = SYSMINOR(aoemajor, h->minor);
if (sysminor * AOE_PARTITIONS + AOE_PARTITIONS > MINORMASK) {
printk(KERN_INFO "aoe: e%ld.%d: minor number too large\n",
if (h->minor >= NPERSHELF) {
printk(KERN_INFO "aoe: e%ld.%d: AoE minor address too large\n",
aoemajor, (int) h->minor);
return;
} else if (sysminor * AOE_PARTITIONS + AOE_PARTITIONS > MINORMASK) {
printk(KERN_INFO "aoe: e%ld.%d: AoE major address too large\n",
aoemajor, (int) h->minor);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment