be2net: add dma_mapping_error() check for dma_map_page()
authorIvan Vecera <ivecera@redhat.com>
Wed, 15 Jan 2014 10:11:34 +0000 (11:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jan 2014 00:50:32 +0000 (16:50 -0800)
commitba42fad0964a41f0830e80c1b6be49c1e6bfcc01
tree1855dfebb3c7f90e843895adbc9485808a5eb095
parentd9aee591b0f06bd44cd577b757d3f267bc35fe4d
be2net: add dma_mapping_error() check for dma_map_page()

The driver does not check value returned by dma_map_page. The patch
fixes this.

v2: Removed the bugfix for non-bug ;-) (thanks Sathya)

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Sathya Perla <Sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c