projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a8e0c8
)
[S390] vmur: fix diag14_read.
author
Frank Munzert
<munzert@de.ibm.com>
Fri, 27 Jul 2007 10:29:17 +0000
(12:29 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Fri, 27 Jul 2007 10:29:19 +0000
(12:29 +0200)
Record length of spool file must be only stored in 1st SPLINK record
Signed-off-by: Frank Munzert <munzert@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/vmur.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/s390/char/vmur.c
b/drivers/s390/char/vmur.c
index e90b0f84619582f236c153cb7b4b00b7fd887a0d..161867cebd8c5bd2e0d9d8f09dfa0dac5996d8cf 100644
(file)
--- 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)) {