Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2b3d8c9e06392d5539aa5d652f3a3c385fd19333
Commit:     2b3d8c9e06392d5539aa5d652f3a3c385fd19333
Parent:     7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4
Author:     Frank Munzert <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 27 12:29:17 2007 +0200
Committer:  Martin Schwidefsky <[EMAIL PROTECTED]>
CommitDate: Fri Jul 27 12:29:19 2007 +0200

    [S390] vmur: fix diag14_read.
    
    Record length of spool file must be only stored in 1st SPLINK record
    
    Signed-off-by: Frank Munzert <[EMAIL PROTECTED]>
    Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
---
 drivers/s390/char/vmur.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/s390/char/vmur.c b/drivers/s390/char/vmur.c
index e90b0f8..161867c 100644
--- a/drivers/s390/char/vmur.c
+++ b/drivers/s390/char/vmur.c
@@ -486,7 +486,7 @@ static ssize_t diag14_read(struct file *file, char __user 
*ubuf, size_t count,
                }
                if (rc)
                        goto fail;
-               if (reclen)
+               if (reclen && (copied == 0) && (*offs < PAGE_SIZE))
                        *((u16 *) &buf[FILE_RECLEN_OFFSET]) = reclen;
                len = min(count - copied, PAGE_SIZE - res);
                if (copy_to_user(ubuf + copied, buf + res, len)) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to