Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bb8e8bcce7eceacb52eb0a3ebb64202ad6bcc438
Commit:     bb8e8bcce7eceacb52eb0a3ebb64202ad6bcc438
Parent:     711924b1052a280bd2452c3babb9816e4a77c723
Author:     Shannon Nelson <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 17 16:20:08 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Dec 17 19:28:17 2007 -0800

    I/OAT: fix null device in call to dev_err()
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Shannon Nelson <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 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 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;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to