Tina Johnson 541675580f drivers: atm: eni: Add pci_dma_mapping_error() call
Added a pci_dma_mapping_error() call to check for mapping errors before
further using the dma handle. In case of error, control goes to a new label
where the incoming skb is freed. Unchecked dma handles were found using
Coccinelle:

@rule1@
expression e1;
identifier x;
@@

*x = pci_map_single(...);
 ... when != pci_dma_mapping_error(e1,x)

Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-21 15:03:40 -05:00
..
2011-03-31 11:26:23 -03:00
2014-08-08 15:57:28 -07:00
2014-08-08 15:57:28 -07:00
2011-03-31 11:26:23 -03:00
2013-02-08 14:22:05 -05:00
2014-08-07 16:02:57 -07:00
2012-03-28 18:30:03 +01:00
2011-07-26 16:49:47 -07:00
2013-01-03 15:57:04 -08:00