From: Tina Johnson Date: Thu, 20 Nov 2014 10:24:54 +0000 (+0530) Subject: drivers: atm: eni: Add pci_dma_mapping_error() call X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~143 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=541675580ffcd098d746f7f713c7dbcc86744925;p=pandora-kernel.git 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 Acked-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed