[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH net-next] xen-netback: allocate xenvif arrays using vzalloc.
On Wed, 2013-10-30 at 10:39 +0000, Joby Poriyath wrote:
> The net_device allocation rule
> {linux/Documentation/networking/netdevices.txt} states
> that net_device struct must be allocated using kmalloc.
>
> Is this safe to do?
As long as the freeing path is aware of the possibility the memory is
either allocated with vmalloc() or kmalloc(), we are safe.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|