public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: hooanon05@yahoo.co.jp
To: viro@ZenIV.linux.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: Q. d_alloc() in pipe(2)
Date: Tue, 29 Dec 2009 14:55:20 +0900	[thread overview]
Message-ID: <20021.1262066120@jrobl> (raw)


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

             reply	other threads:[~2009-12-29  5:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-29  5:55 hooanon05 [this message]
2009-12-29 15:02 ` Q. d_alloc() in pipe(2) Américo Wang
2009-12-30  3:41   ` hooanon05
2009-12-31  3:04 ` Bill Davidsen

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=20021.1262066120@jrobl \
    --to=hooanon05@yahoo.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    /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