From: Mikael Pettersson <mikpe@user.it.uu.se>
To: "sudharsan vijayaraghavan" <my_goal@rediffmail.com>
Cc: linux-kernel@vger.kernel.org, svijayar@cisco.com,
narendiran_srinivasan@satyam.com
Subject: Re: fd_install question ??
Date: Fri, 7 Mar 2003 00:06:44 +0100 [thread overview]
Message-ID: <15975.54404.895292.258958@gargle.gargle.HOWL> (raw)
In-Reply-To: <20030306224608.29991.qmail@webmail17.rediffmail.com>
sudharsan vijayaraghavan writes:
> // f1->f_vfsmnt = f2->f_vfsmnt =
> mntget(mntget(pipe_mnt));
> --> f1->f_vfsmnt = f2->f_vfsmnt = f3->f_vfsmnt =
> mntget(mntget(pipe_mnt));
> // f1->f_dentry = f2->f_dentry = dget(dentry);
> --> f1->f_dentry = f2->f_dentry = f3->f_dentry =
> dget(dentry);
A unified diff would have been much more readable.
You now have one more reference to ->f_vfsmnt and ->f_dentry, so I
suspect you're missing one mntget() and one dget() above. The usual
impact of a too low ref count is that the object is reassigned while
you're still using it, with memory corruption & oopses as the result.
/Mikael
next prev parent reply other threads:[~2003-03-06 22:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-06 22:46 sudharsan vijayaraghavan
2003-03-06 23:06 ` Mikael Pettersson [this message]
2003-03-06 23:28 ` Chris Wright
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=15975.54404.895292.258958@gargle.gargle.HOWL \
--to=mikpe@user.it.uu.se \
--cc=linux-kernel@vger.kernel.org \
--cc=my_goal@rediffmail.com \
--cc=narendiran_srinivasan@satyam.com \
--cc=svijayar@cisco.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®