igbvf: Check for error on dma_map_single call
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 21 Sep 2012 00:21:39 +0000 (00:21 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 30 Oct 2012 06:48:58 +0000 (23:48 -0700)
commit91ffb8e0dc662868addeff9fd013145c49a43c4a
treefee430bdc1420e92340a48b6aab345eb37aba5eb
parentf9d08f165b8a5a4af6f827318e692b57bc683825
igbvf: Check for error on dma_map_single call

Ignoring the return value from a call to the kernel dma_map API functions
can cause data corruption and system instability.  Check the return value
and take appropriate action.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igbvf/netdev.c