be2net: Fix 32-bit DMA Mask handling
authorSomnath Kotur <somnath.kotur@emulex.com>
Tue, 11 Jun 2013 11:48:22 +0000 (17:18 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 08:28:36 +0000 (01:28 -0700)
commit0c5fed09ab0feedd43c362b1c7fff67fdbf9548f
tree9fb75ccdbf97aee7b742fe4b9ecb957d3ede7cea
parente86c986137ee410190093d9ba86b86854861b9d5
be2net: Fix 32-bit DMA Mask handling

Fix to set the coherent DMA mask only if dma_set_mask() succeeded, and to
error out if either fails.

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