be2net: Fixed a bug in be_cmd_get_regs().
authorSomnath Kotur <somnath.kotur@emulex.com>
Thu, 21 Apr 2011 03:18:12 +0000 (03:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2011 19:13:47 +0000 (12:13 -0700)
commitfe2a70eefa18a3e419dd9a23e16af14258b7cc20
treec86cf20f94ef175ff83bd7ae4d3c9ee648826662
parent3aba891dde3842d89ad022237b99c1ed308040b0
be2net: Fixed a bug in be_cmd_get_regs().

Same WRB entry was being reused over different iterations of a
loop while issuing non-embedded IOCTL requests.Fixed couple of minor bugs
in this path as well.
Re-factored code to alloc/free memory for DMA outside of loop

Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_cmds.c