Commit fd599985 authored by Mark Allyn's avatar Mark Allyn Committed by Greg Kroah-Hartman

Staging: sep: eliminate kernel crash due to null parameter in dma_alloc_coherent

Signed-off-by: default avatarMark Allyn <mark.a.allyn@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 653bf0cf
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment