All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Kuebel <kuebelr@email.uc.edu>
To: Jeff Garzik <jgarzik@mandrakesoft.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 8139too thread termination
Date: Tue, 30 Oct 2001 19:30:10 -0500	[thread overview]
Message-ID: <20011030193010.B898@cartman> (raw)
In-Reply-To: <20011029232508.A305@cartman> <20011030191152.A898@cartman> <3BDF436A.AE664A99@mandrakesoft.com>
In-Reply-To: <3BDF436A.AE664A99@mandrakesoft.com>

i was so wrapped up in digging through kmalloc(), that i missed the
memset() in alloc_netdev().  duh!

On Tue, Oct 30, 2001 at 07:18:50PM -0500, Jeff Garzik wrote:
> 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?
> 
> And here I thought you did it on purpose :)
> 
> alloc_etherdev zeroes memory it allocates, so in net drivers all private
> structures can be considered initialized to zero when you get them.
> 
> 	Jeff
> 
> 
> -- 
> Jeff Garzik      | Only so many songs can be sung
> Building 1024    | with two lips, two lungs, and one tongue.
> MandrakeSoft     |         - nomeansno

      reply	other threads:[~2001-10-31  0:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-30  4:25 [PATCH] 8139too thread termination Robert Kuebel
2001-10-31  0:11 ` Robert Kuebel
2001-10-31  0:17   ` Andrew Morton
2001-10-31  0:18   ` Jeff Garzik
2001-10-31  0:30     ` Robert Kuebel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011030193010.B898@cartman \
    --to=kuebelr@email.uc.edu \
    --cc=jgarzik@mandrakesoft.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.