myri10ge: fix error checking and return value in myri10ge_allocate_rings
authorBrice Goglin <brice@myri.com>
Wed, 7 Mar 2007 18:59:52 +0000 (19:59 +0100)
committerJeff Garzik <jeff@garzik.org>
Fri, 9 Mar 2007 16:51:31 +0000 (11:51 -0500)
commit355c7265f4745a2aa6f0482d466e2271e6b3c61a
treeae8ac39636bb84d9a051b08ee5fd61697e625fe7
parentb8d095d782fa1e97d5dc05c08ba32c8eb28b85e4
myri10ge: fix error checking and return value in myri10ge_allocate_rings

Fix a missing error check in myri10ge_allocate_rings() and set status
to -ENOMEM before all actual allocations so that the error path returns
what it should.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/myri10ge/myri10ge.c