* [PATCH 11/11] sep: eliminate kernel crash due to null parameter in dma_alloc_coherent
@ 2010-12-09 17:32 Mark Allyn
0 siblings, 0 replies; only message in thread
From: Mark Allyn @ 2010-12-09 17:32 UTC (permalink / raw)
To: linux-kernel, greg, mark.a.allyn, alan, dmitry.kasatkin
Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
---
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 bb42b04..2681fcf 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");
--
1.6.3.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-09 17:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-09 17:32 [PATCH 11/11] sep: eliminate kernel crash due to null parameter in dma_alloc_coherent Mark Allyn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome