From: Tina Johnson <[email protected]> Date: Thu, 20 Nov 2014 15:54:54 +0530
> 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 <[email protected]> > Acked-by: Julia Lawall <[email protected]> > --- > v2: *Removed jump to trouble label > *Added a new label dma_map_error Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

