Skip to content

Commit

Permalink
Staging: sep: eliminate kernel crash due to null parameter in dma_all…
Browse files Browse the repository at this point in the history
…oc_coherent

Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mark Allyn authored and Greg Kroah-Hartman committed Dec 10, 2010
1 parent 653bf0c commit fd59998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/sep/sep_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit fd59998

Please sign in to comment.