From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: ragnar@ragnar-hojland.com (Ragnar Hojland Espinosa)
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.4.16: kmalloc tidying
Date: Tue, 4 Dec 2001 09:33:46 +0000 (GMT) [thread overview]
Message-ID: <E16BBxS-0001Pn-00@the-village.bc.nu> (raw)
In-Reply-To: <20011203193751.A10125@ragnar-hojland.com> from "Ragnar Hojland Espinosa" at Dec 03, 2001 07:37:51 PM
> +++ linux-2.4.16/drivers/sbus/char/envctrl.c Tue Nov 13 05:31:02 2001
> @@ -897,10 +897,6 @@ static void envctrl_init_i2c_child(struc
> }
> =20
> pchild->tables =3D kmalloc(tbls_size, GFP_KERNEL);
> - if (!pchild->tables) {
> - printk("envctrl: Failed to get table, not enough memory.\n");
Why are you removing the checks here ?
> current->mm->rss =3D 0;
> - setup_arg_pages(bprm); /* XXX: check error */
> + retval =3D setup_arg_pages(bprm);
> + if (retval)=20
> + goto out_free_dentry;
At this point you need to do more drastic things - see the last -ac patch
for a possible solution
next prev parent reply other threads:[~2001-12-04 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-03 18:37 Ragnar Hojland Espinosa
2001-12-04 9:33 ` Alan Cox [this message]
2001-12-03 23:02 ` Ragnar Hojland Espinosa
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=E16BBxS-0001Pn-00@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=ragnar@ragnar-hojland.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®