[PATCH 1/2] drivers: scsi: mpt2sas: Added pci_dma_mapping_error() call

2015-01-17 Thread Tina Johnson
Replaced null test on dma handle with pci_dma_mapping_error() o check for mapping errors. Coccinelle was used to find cases that do not check for dma mapping errors: @rule1@ statement S; identifier x; @@ *x = pci_map_single(...); if (!x) S Signed-off-by: Tina Johnson Acked-by: Julia Lawall

[PATCH 2/2] drivers: scsi: mpt2sas: Clean up error handling for calls to pci_map_single

2015-01-17 Thread Tina Johnson
the out variables. Labels were renamed and gotos altered accordingly. *At the point of the goto free_pci, neither the in nor the out variables are allocated and hence no freeing required. The free_pci label is removed and the goto free_pci is replaced with goto out. Signed-off-by: Tina Johnson

[PATCH 0/2] Added pci_mapping_error() call and related clean up

2015-01-17 Thread Tina Johnson
Replaced null test on dma handle with pci_dma_mapping_error() and cleaned up the error handling code. Tina Johnson (2): drivers: scsi: mpt2sas: Added pci_dma_mapping_error() call drivers: scsi: mpt2sas: Clean up error handling for calls to pci_map_single drivers/scsi/mpt2sas

[PATCH] drivers: message: Clean up error handling for calls to pci_map_single

2015-01-13 Thread Tina Johnson
for freeing dma_addr_out (unmap_out) and dma_addr_in (unmap_in). Coccinelle was used to find unchecked dma handles, as follows: @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

[PATCH v2] drivers: atm: eni: Add pci_dma_mapping_error() call

2014-11-20 Thread Tina Johnson
(...); ... when != pci_dma_mapping_error(e1,x) Signed-off-by: Tina Johnson Acked-by: Julia Lawall --- v2: *Removed jump to trouble label *Added a new label dma_map_error drivers/atm/eni.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c index

Re: [PATCH] drivers: atm: eni: Add pci_dma_mapping_error() call

2014-11-11 Thread Tina Johnson
On Mon, 10 Nov 2014, David Miller wrote: > The 'trouble' label assumes that it is recovering and unwinding state > when an error occurs after the DMA buffer is successfully mapped. > > It unconditionally does pci_unmap_single() if 'paddr' is non-zero > which it might be in the error case dependi

[PATCH] drivers: atm: eni: Add pci_dma_mapping_error() call

2014-11-08 Thread Tina Johnson
Added a pci_dma_mapping_error() call to check for mapping errors before further using the dma handle. 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

[PATCH 1/2] Base: fix whitespace errors

2014-08-11 Thread Tina Johnson
This is a clean-up patch to the attribute_container.c file to fix the whitespace errors. Signed-off-by: Tina Johnson --- drivers/base/attribute_container.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/base/attribute_container.c b/drivers/base

[PATCH 2/2] Base: fix coding style issues

2014-08-11 Thread Tina Johnson
Fix checkpatch.pl issues with coding style. Added and removed spaces accordingly. Signed-off-by: Tina Johnson --- drivers/base/attribute_container.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/attribute_container.c b/drivers/base

[PATCH 0/2] fix checkpatch.pl issues of Base: attribute_container.c

2014-08-11 Thread Tina Johnson
Clean-up patches to fix checkpatch.pl errors. Tina Johnson (2): Base: fix whitespace errors Base: fix coding style issues drivers/base/attribute_container.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line