]> git.baikalelectronics.ru Git - kernel.git/commit
irda: vlsi_ir: fix check for DMA mapping errors
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 24 Mar 2017 22:48:08 +0000 (01:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Mar 2017 03:14:40 +0000 (20:14 -0700)
commiteec60bb832683c1f2b2ed9258a6f68bdacbc7d85
tree2ac956b31729a81f5d30a92ad640a709bd2d0297
parenta7b82e8512daf833de5d294365a0b9e601a0ced9
irda: vlsi_ir: fix check for DMA mapping errors

vlsi_alloc_ring() checks for DMA mapping errors by comparing
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 <khoroshilov@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/vlsi_ir.c