[PATCH] ibmveth fix failed addbuf
authorSantiago Leon <santil@us.ibm.com>
Wed, 26 Oct 2005 16:47:23 +0000 (10:47 -0600)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 28 Oct 2005 20:07:31 +0000 (16:07 -0400)
commit82702d37a559cf94fe238cd3f8ef63cf7fa699a9
tree695a5b7dca7e2c25aa148fc4bb968857f7bc72c6
parent60296d9e4be1cd9e096f7804ce6e839e0cbd97cf
[PATCH] ibmveth fix failed addbuf

This patch fixes a bug that happens when the hypervisor can't add a
buffer.  The old code wrote IBM_VETH_INVALID_MAP into the free_map
array, so next time the index was used, a ibmveth_assert() caught it and
called BUG().  The patch writes the right value into the free_map array
so that the index can be reused.

Signed-off-by: Santiago Leon <santil@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/ibmveth.c