pcnet32: add missing check for pci_dma_mapping_error
authorDon Fry <pcnet32@frontier.com>
Tue, 18 Feb 2014 04:57:59 +0000 (20:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Feb 2014 19:58:27 +0000 (14:58 -0500)
commit4cc5c475797ae9152738d8ea53131576083e4d5b
treeeea3a3944b7a75b995efef3be561c59b7676a480
parent60e2e8b399ca58bf1954d36aee2cc78f923851c9
pcnet32: add missing check for pci_dma_mapping_error

The pci_map_single calls never checked for error. Add error checking
as requested by someone last year.  Tested on 79c972.

Signed-off-by: Don Fry <pcnet32@frontier.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/pcnet32.c