ndis: properly allocate memory

Bernhard Schmidt bschmidt at freebsd.org
Wed Nov 10 17:36:07 UTC 2010


On Wed, Nov 10, 2010 at 15:56, Paul B Mahol <onemda at gmail.com> wrote:
> Hi,
>
> Attached patch resolves buggy allocation of memory in NDISulator.
> Correct behavior is to not ignore parameters specified by miniport driver.

The important point to mention here is that those restrictions are to be
applied to physical memory according to specs for
MmAllocateContiguousMemorySpecifyCache(), therefore the call to
contigmalloc().

I'll take care of the commit.

-- 
Bernhard


More information about the freebsd-net mailing list