diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
commit | f969d69ba9f952e5bdd38278e25e26a3e4a61a70 (patch) | |
tree | b3530d803df59d726afaabebc6626987dee1ca05 /drivers/char/ftape/lowlevel/ftape-ctl.c | |
parent | a10ce7ef2066b455d69187643ddf2073bfc4db24 (diff) |
Merge with 2.3.27.
Diffstat (limited to 'drivers/char/ftape/lowlevel/ftape-ctl.c')
-rw-r--r-- | drivers/char/ftape/lowlevel/ftape-ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ftape/lowlevel/ftape-ctl.c b/drivers/char/ftape/lowlevel/ftape-ctl.c index 05f1f6146..6ec456f00 100644 --- a/drivers/char/ftape/lowlevel/ftape-ctl.c +++ b/drivers/char/ftape/lowlevel/ftape-ctl.c @@ -704,8 +704,8 @@ int ftape_mmap(struct vm_area_struct *vma) if ((vma_get_flags(vma) & (VM_READ|VM_WRITE)) == 0) { TRACE_ABORT(-EINVAL, ft_t_err, "Undefined mmap() access"); } - if (vma_get_offset (vma) != 0) { - TRACE_ABORT(-EINVAL, ft_t_err, "offset must be 0"); + if (vma_get_pgoff(vma) != 0) { + TRACE_ABORT(-EINVAL, ft_t_err, "page offset must be 0"); } if ((vma_get_end (vma) - vma_get_start (vma)) % FT_BUFF_SIZE != 0) { TRACE_ABORT(-EINVAL, ft_t_err, |