I/OAT: fix null device in call to dev_err()
Changes
1 files changed · +1 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/dma/ioat_dma.c | modified | +1 | −1 | View file |
drivers/dma/ioat_dma.c
View filediff --git a/drivers/dma/ioat_dma.c b/drivers/dma/ioat_dma.c
index c17ec32..45e7b46 100644
--- a/drivers/dma/ioat_dma.c
+++ b/drivers/dma/ioat_dma.c
@@ -1363,7 +1363,7 @@ err_completion_pool:
err_dma_pool:
kfree(device);
err_kzalloc:
- dev_err(&device->pdev->dev,
+ dev_err(&pdev->dev,
"Intel(R) I/OAT DMA Engine initialization failed\n");
return NULL;
}