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>
This commit is contained in:
parent
653bf0cfa5
commit
fd599985e6
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue