]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dma-debug-enhance-dma_debug_device_change-to-check-for-mapping-errors-fix
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 16 Dec 2013 23:44:50 +0000 (10:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:44:50 +0000 (10:44 +1100)
Per Shuah: "dev_warn() on line 740 should use dev not entry->dev"

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alexander Duyck <alexander.h.duyck@intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/dma-debug.c

index e34865ef27e3cdbd2f8219d9ee468ff27c952958..5f294451d181458febe1c561cc602d6cfd6ab381 100644 (file)
@@ -737,7 +737,7 @@ static int device_dma_allocations(struct device *dev, struct dma_debug_entry **o
        local_irq_restore(flags);
 
        if (map_err_cnt)
-               dev_warn(entry->dev,
+               dev_warn(dev,
                        "DMA-API: device driver failed to check map errors: "
                        "[count] = %d\n", map_err_cnt);
        return count;