From: Alexey Dobriyan <adobriyan@sw.ru>
To: akpm@osdl.org
Cc: Eric Dumazet <dada1@cosmosbay.com>, linux-kernel@vger.kernel.org
Subject: [PATCH -mm] Fix lseek on /proc/kcore
Date: Thu, 22 Mar 2007 12:56:00 +0300 [thread overview]
Message-ID: <20070322095600.GA6816@localhost.sw.ru> (raw)
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
---
fs/proc/inode.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -167,8 +167,9 @@ static loff_t proc_reg_llseek(struct fil
llseek = pde->proc_fops->llseek;
spin_unlock(&pde->pde_unload_lock);
- if (llseek)
- rv = llseek(file, offset, whence);
+ if (!llseek)
+ llseek = default_llseek;
+ rv = llseek(file, offset, whence);
spin_lock(&pde->pde_unload_lock);
pde->pde_users--;
next reply other threads:[~2007-03-22 9:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 9:56 Alexey Dobriyan [this message]
2007-03-22 13:14 ` [PATCH -mm] Fix lseek on /proc/kcore Arjan van de Ven
2007-03-28 8:05 ` Alexey Dobriyan
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=20070322095600.GA6816@localhost.sw.ru \
--to=adobriyan@sw.ru \
--cc=akpm@osdl.org \
--cc=dada1@cosmosbay.com \
--cc=linux-kernel@vger.kernel.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