Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kernel panic after calling freePacket()



Am Sonntag den, 31. Mdrz 2002, um 19:48, schrieb chuck remes:

I get the following kernel panic when calling free() on my IOKit ethernet driver.

panic(cpu 1): freeing free mbuf
The following code snippets are involved:

Just as an aside, why in 'init' do you call freeRxRing. I suppose my
assumption about 'init' is that there has been no RxRing allocations,
and hence the test if ( rx_mbuf_ring[ i] != NULL) would
be superfluous if the pointer array is in fact all nulls, and
if not all nulls, then filled with junk, which would give rise to a
panic room attack in the kernel.



bool com_chuck_iokit_tulip::_initRxRing()
{
struct mbuf* m;
struct IOPhysicalSegment vector;
int segments, i, lastI = 0;

_freeRxRing();
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >kernel panic after calling freePacket() (From: chuck remes <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.