diff options
author | Mark Allyn <mark.a.allyn@intel.com> | 2010-12-09 17:32:53 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-10 00:37:50 (GMT) |
commit | fd599985e649c71162495d307a2fd1bbddc258e4 (patch) | |
tree | 3242392fbdda1a1790336828f631a58782b79328 /drivers/staging/sep | |
parent | 653bf0cfa55896b74d8cbe7e561401813ca359ad (diff) | |
download | linux-fd599985e649c71162495d307a2fd1bbddc258e4.tar.xz |
Staging: sep: eliminate kernel crash due to null parameter in dma_alloc_coherent
Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/sep')
-rw-r--r-- | drivers/staging/sep/sep_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/sep/sep_driver.c b/drivers/staging/sep/sep_driver.c index bb42b048..2681fcf0 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"); |