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

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


  parent reply	other threads:[~2001-10-31  0:18 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 [this message]
2001-10-31  0:30     ` Robert Kuebel

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=3BDF436A.AE664A99@mandrakesoft.com \
    --to=jgarzik@mandrakesoft.com \
    --cc=kuebelr@email.uc.edu \
    --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.