Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The version number of this driver is unrelated to the version numbers
of Linux kernels. Just use the latest aoe driver with your 2.6 or 3.x
Linux kernel.

[This driver is available on github.](https://github.com/ecashin/aoe)
[This driver is available on github.](https://github.com/OpenAoE/aoe)

Please see linux/Documentation/aoe.txt for basic information and
EtherDrive-2.6-HOWTO.sgml for more.
Expand Down
8 changes: 7 additions & 1 deletion linux/drivers/block/aoe/aoecmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,8 @@ addtgt(struct aoedev *d, char *addr, ulong nframes)
memcpy(t->addr, addr, sizeof t->addr);
t->ifp = t->ifs;
aoecmd_wreset(t);
t->maxout = t->nframes / 2;
if (t->nframes > 1)
t->maxout = t->nframes / 2;
INIT_LIST_HEAD(&t->ffree);
return *tt = t;

Expand Down Expand Up @@ -1653,6 +1654,11 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
n = be16_to_cpu(ch->bufcnt);
if (n > aoe_maxout) /* keep it reasonable */
n = aoe_maxout;
else if (n == 0) {
pr_warn_ratelimited("aoe: e%ld.%d has zero bufcnt %s\n",
aoemajor, h->minor, "and cannot be used");
return;
}

d = aoedev_by_aoeaddr(aoemajor, h->minor, 1);
if (d == NULL) {
Expand Down