From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Gerald Schaefer <geraldsc@de.ibm.com>
Subject: [patch 2/2] s390: z/VM watchdog driver bugfix.
Date: Thu, 16 Dec 2004 09:22:47 +0100 [thread overview]
Message-ID: <20041216082247.GC5043@osiris.boeblingen.de.ibm.com> (raw)
[patch 2/2] s390: z/VM watchdog driver bugfix.
From: Gerald Schaefer <geraldsc@de.ibm.com>
- Remove ESPIPE logic, use nonseekable_open() instead.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
diffstat:
drivers/s390/char/vmwatchdog.c | 6 +-----
1 files changed, 1 insertion(+), 5 deletions(-)
diff -urN linux-2.6/drivers/s390/char/vmwatchdog.c linux-2.6-patched/drivers/s390/char/vmwatchdog.c
--- linux-2.6/drivers/s390/char/vmwatchdog.c 2004-12-16 08:52:03.000000000 +0100
+++ linux-2.6-patched/drivers/s390/char/vmwatchdog.c 2004-12-16 08:52:24.000000000 +0100
@@ -168,7 +168,7 @@
ret = vmwdt_keepalive();
if (ret)
clear_bit(0, &vmwdt_is_open);
- return ret;
+ return ret ? ret : nonseekable_open(i, f);
}
static int vmwdt_close(struct inode *i, struct file *f)
@@ -238,10 +238,6 @@
static ssize_t vmwdt_write(struct file *f, const char __user *buf,
size_t count, loff_t *ppos)
{
- /* We can't seek */
- if(ppos != &f->f_pos)
- return -ESPIPE;
-
if(count) {
if (!vmwdt_nowayout) {
size_t i;
reply other threads:[~2004-12-16 8:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20041216082247.GC5043@osiris.boeblingen.de.ibm.com \
--to=heiko.carstens@de.ibm.com \
--cc=akpm@osdl.org \
--cc=geraldsc@de.ibm.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
Powered by JetHome