* [PATCH] I/OAT: fix null device in call to dev_err()
@ 2007-12-15 1:33 Shannon Nelson
0 siblings, 0 replies; only message in thread
From: Shannon Nelson @ 2007-12-15 1:33 UTC (permalink / raw)
To: linux-kernel, akpm; +Cc: snakebyte, shannon.nelson, maciej.sosnowski
We can't use the device in a dev_err() after a kzalloc failure or after the kfree, so
simplify it to the pdev that was originally passed in.
Cc: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
---
drivers/dma/ioat_dma.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/dma/ioat_dma.c b/drivers/dma/ioat_dma.c
index c1c2dcc..19cd204 100644
--- a/drivers/dma/ioat_dma.c
+++ b/drivers/dma/ioat_dma.c
@@ -1351,7 +1351,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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-14 17:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-15 1:33 [PATCH] I/OAT: fix null device in call to dev_err() Shannon Nelson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome