Messages in this thread | | | Date | Fri, 21 Nov 2014 15:03:54 -0500 (EST) | Subject | Re: [PATCH v2] drivers: atm: eni: Add pci_dma_mapping_error() call | From | David Miller <> |
| |
From: Tina Johnson <tinajohnson.1234@gmail.com> 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 <tinajohnson.1234@gmail.com> > Acked-by: Julia Lawall <julia.lawall@lip6.fr> > --- > v2: *Removed jump to trouble label > *Added a new label dma_map_error
Applied, thanks.
| |