Commit:     2b053729a84b6aac197df51b8729bc9fec743bff
Parent:     2338545aafbecce55bbc651fb3f63ebf7468b6fb
Author:     Salyzyn, Mark <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 2 15:38:59 2007 -0400
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Sat Aug 4 09:46:43 2007 -0500

    [SCSI] aacraid: prevent panic on adapter resource failure
    If the driver fails to allocate the contiguous (DMAable) memory for
    system reasons, we fail to load the instance, but then we try to free
    the <nul> allocation in the cleanup code and we get a panic in
    pci_free_consistent(). This is reported against an older kernel, hope
    this is relevant for latest/greatest.
    Signed-off-by: Mark Salyzyn <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/scsi/aacraid/linit.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 813556c..a7f42a1 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -1110,7 +1110,9 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
-       pci_free_consistent(aac->pdev, aac->comm_size, aac->comm_addr, 
+       if (aac->comm_addr)
+               pci_free_consistent(aac->pdev, aac->comm_size, aac->comm_addr,
+                 aac->comm_phys);
        aac_adapter_ioremap(aac, 0);
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

Reply via email to