Re: [PATCH] 8139too thread termination

From: Andrew Morton (akpm@zip.com.au)
Date: Tue Oct 30 2001 - 19:17:42 EST


Robert Kuebel wrote:
>
> ok, i am wondering if i have made a mistake. this patch will make the
> kernel thread die when tp->time_to_die is true. tp is kmalloc()'ed
> inside of alloc_etherdev. i didn't initialize time_to_die to 0, but
> this patch has been working perfectly for me. am i just lucky or are
> kmalloc()'ed regions zero'ed out? i know there is stuff like
> get_zeroed_page(), but i don't think that applies here. i guess it
> doesn't hurt to set the flag to zero myself.
>

alloc_etherdev->alloc_netdev->memset(dev, 0, alloc_size);

It was zeroed for you.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 31 2001 - 21:00:42 EST