mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: root@chaos.analogic.com
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: modutils-2.3.15 'insmod'
Date: Mon, 14 Jul 2003 21:41:01 +1000	[thread overview]
Message-ID: <20991.1058182861@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Wed, 09 Jul 2003 11:25:11 -0400." <Pine.LNX.4.53.0307091119450.470@chaos>

On Wed, 9 Jul 2003 11:25:11 -0400 (EDT), 
"Richard B. Johnson" <root@chaos.analogic.com> wrote:
>modutils-2.3.15, and probably later, has a bug that can prevent
>modules from being loaded from initrd, this results in not
>being able to mount a root file-system. The bug assumes that
>malloc() will return a valid pointer when given an allocation
>size of zero.

Sigh :(  Fixed over two years ago.

modutils Changelog.  2001-05-06 modutils 2.4.6

	* Do not assume that malloc(0) returns a pointer.  Bug report by
	  Kiichiro Naka, different fix by Keith Owens.

void *
xmalloc(size_t size)
{
  void *ptr = malloc(size ? size : 1);
  if (!ptr)
    {
      error("Out of memory");
      exit(1);
    }
  return ptr;
}


      parent reply	other threads:[~2003-07-14 11:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-09 15:25 Richard B. Johnson
2003-07-09 15:45 ` Andreas Schwab
2003-07-09 16:04   ` Bill Rugolsky Jr.
2003-07-09 22:44   ` H. Peter Anvin
2003-07-09 23:51     ` Richard B. Johnson
2003-07-09 16:08 ` Kurt Wall
2003-07-09 16:33   ` Andy Isaacson
2003-07-14 11:41 ` Keith Owens [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=20991.1058182861@ocs3.intra.ocs.com.au \
    --to=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®