From: Mark Allyn Date: Thu, 9 Dec 2010 17:32:53 +0000 (-0800) Subject: Staging: sep: eliminate kernel crash due to null parameter in dma_alloc_coherent X-Git-Tag: MMI-PSA29.97-13-9~21393^2~45 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd599985e649c71162495d307a2fd1bbddc258e4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: sep: eliminate kernel crash due to null parameter in dma_alloc_coherent Signed-off-by: Mark Allyn Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sep/sep_driver.c b/drivers/staging/sep/sep_driver.c index bb42b048f46a..2681fcf0c34d 100644 --- a/drivers/staging/sep/sep_driver.c +++ b/drivers/staging/sep/sep_driver.c @@ -3442,7 +3442,7 @@ static int __devinit sep_probe(struct pci_dev *pdev, } sep->rar_size = FAKE_RAR_SIZE; - sep->rar_addr = dma_alloc_coherent(NULL, + sep->rar_addr = dma_alloc_coherent(&sep->pdev->dev, sep->rar_size, &sep->rar_bus, GFP_KERNEL); if (sep->rar_addr == NULL) { dev_warn(&sep->pdev->dev, "can't allocate mfld rar\n");