Re: [PATCH] irda: vlsi_ir: fix check for dma mapping errors

2017-03-25 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 25 Mar 2017 01:48:08 +0300 > vlsi_alloc_ring() checks for dma mapping errors by comparison > returned address with zero, while pci_dma_mapping_error() should be used. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey

Re: [PATCH] irda: vlsi_ir: fix check for dma mapping errors

2017-03-25 Thread Sergei Shtylyov
Hello! On 3/25/2017 1:48 AM, Alexey Khoroshilov wrote: vlsi_alloc_ring() checks for dma mapping errors by comparison DMA. Comparing. returned address with zero, while pci_dma_mapping_error() should be used. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: A

[PATCH] irda: vlsi_ir: fix check for dma mapping errors

2017-03-24 Thread Alexey Khoroshilov
vlsi_alloc_ring() checks for dma mapping errors by comparison returned address with zero, while pci_dma_mapping_error() should be used. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/net/irda/vlsi_ir.c | 8 1 file changed, 4