Thanks for redoing the patch, but... On Wed, Mar 06, 2013 at 10:17:22AM +0800, Andrew Cooks wrote: > diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c > index 1879a59..5431ba8 100644 > --- a/drivers/dma/ioat/dma.c > +++ b/drivers/dma/ioat/dma.c > @@ -832,7 +832,18 @@ int ioat_dma_self_test(struct ioatdma_device *device) > } > > dma_src = dma_map_single(dev, src, IOAT_TEST_SIZE, DMA_TO_DEVICE); > + if (dma_mapping_error(dev, dma_src)) { > + dev_err(dev, "dma mapping failed.\n"); > + goto free_resources;
Won't this result in 'err' still being zero here, and cause this function to apparantly return success? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/