mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Wright <chrisw@osdl.org>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: Chris Wright <chrisw@osdl.org>,
	manfred@colorfullife.com, akpm@osdl.org, torvalds@osdl.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] simplify mqueue_inode_info->messages allocation
Date: Wed, 5 May 2004 15:30:36 -0700	[thread overview]
Message-ID: <20040505153036.K21045@build.pdx.osdl.net> (raw)
In-Reply-To: <20040505135523.GC1418@logos.cnet>; from marcelo.tosatti@cyclades.com on Wed, May 05, 2004 at 10:55:23AM -0300

* Marcelo Tosatti (marcelo.tosatti@cyclades.com) wrote:
> On Tue, May 04, 2004 at 06:37:22PM -0700, Chris Wright wrote:
> > * Chris Wright (chrisw@osdl.org) wrote:
> > > --- ./ipc/mqueue.c~single_alloc	2004-05-04 15:16:34.000000000 -0700
> > > +++ ./ipc/mqueue.c~	2004-05-04 15:59:25.000000000 -0700
> > 
> > Ugh!  Andrew pointed out to me that this is crap.  Sorry about the added
> > noise.  Here's a patch relative to a file that actually exists. 
> 
> While we're at it, in do_create:
> 
>         ret = vfs_create(dir->d_inode, dentry, mode, NULL);
>         if (ret) {
>                 kfree(msgs);
>                 return ERR_PTR(ret);
> 
> The msgs pointer can be NULL. Isnt that going to BUG if so?

kfree(NULL) is no-op.  but if you look at this patch, that is gone
altogether.

thanks,
-chris

-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

      reply	other threads:[~2004-05-05 22:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-05  0:42 [PATCH] fix memleak in sys_mq_timedsend Chris Wright
2004-05-05  0:47 ` [PATCH] fix queues_count accounting in mqueue_delete_inode() Chris Wright
2004-05-05  1:06   ` [PATCH] simplify mqueue_inode_info->messages allocation Chris Wright
2004-05-05  1:37     ` Chris Wright
2004-05-05 13:55       ` Marcelo Tosatti
2004-05-05 22:30         ` Chris Wright [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=20040505153036.K21045@build.pdx.osdl.net \
    --to=chrisw@osdl.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    --cc=marcelo.tosatti@cyclades.com \
    --cc=torvalds@osdl.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 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®