public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Q. d_alloc() in pipe(2)
@ 2009-12-29  5:55 hooanon05
  2009-12-29 15:02 ` Américo Wang
  2009-12-31  3:04 ` Bill Davidsen
  0 siblings, 2 replies; 4+ messages in thread
From: hooanon05 @ 2009-12-29  5:55 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel


In pipe(2), create_write_pipe() creates a dentry by
	struct qstr name = { .name = "" };
	d_alloc(root, &name);

But d_alloc() refers name->len which is uninitialized.
Isn't it better to replace d_alloc() by d_alloc_name(root, "")?


J. R. Okajima

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-31  3:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-29  5:55 Q. d_alloc() in pipe(2) hooanon05
2009-12-29 15:02 ` Américo Wang
2009-12-30  3:41   ` hooanon05
2009-12-31  3:04 ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox