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)
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>

No differences found