lkml.org 
[lkml]   [2004]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 1/2] s390: z/VM monreader driver bugfix.
[patch 1/2] s390: z/VM monreader driver bugfix.

From: Gerald Schaefer <geraldsc@de.ibm.com>

- Use nonseekable_open() to disable seeking and pread()/pwrite().

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

diffstat:
drivers/s390/char/monreader.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -urN linux-2.6/drivers/s390/char/monreader.c linux-2.6-patched/drivers/s390/char/monreader.c
--- linux-2.6/drivers/s390/char/monreader.c 2004-12-16 08:52:03.000000000 +0100
+++ linux-2.6-patched/drivers/s390/char/monreader.c 2004-12-16 08:52:23.000000000 +0100
@@ -450,7 +450,7 @@
}
P_INFO("open, established connection to *MONITOR service\n\n");
filp->private_data = monpriv;
- return 0;
+ return nonseekable_open(inode, filp);

out_unregister:
iucv_unregister_program(monpriv->iucv_handle);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.026 / U:2.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site