Re: kernel panic on readBytes
Re: kernel panic on readBytes
- Subject: Re: kernel panic on readBytes
- From: William Kucharski <email@hidden>
- Date: Wed, 09 Apr 2008 18:52:01 -0600
Timur Alperovich wrote:
struct IOPhysicalRange* range =
(IOPhysicalRange*)IOMalloc(sizeof(struct IOPhysicalRange));
range->address = inStruct->offset;
range->length = MEM_READ_CHUNK;
While it's not the cause of your panic, you should at the very least be checking
to see whether IOMalloc returned a valid pointer or 0 before you dereference
"range."
But given the DAR is 0x1000, it's clear you're likely dereferencing a NULL
pointer at offset 0x1000; what's at 0xB3E40? What's instruct->offset?
William Kucharski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden