lkml.org 
[lkml]   [2004]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] simplify mqueue_inode_info->messages allocation
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?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.059 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site