diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2016-05-21 13:19:21 (GMT) |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-05-29 18:37:45 (GMT) |
commit | f6004b7bc651c11591d544ce3fd60d7bf7d71ccd (patch) | |
tree | 7e5b53b62e641997d3a2aef1add49b369f56127c /drivers/hsi/clients | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) | |
download | linux-f6004b7bc651c11591d544ce3fd60d7bf7d71ccd.tar.xz |
HSI: cmt_speech: use vma_pages().
Replace explicit computation of vma page count by a call to
vma_pages()
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/hsi/clients')
-rw-r--r-- | drivers/hsi/clients/cmt_speech.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c index 95638df..b16cfa4 100644 --- a/drivers/hsi/clients/cmt_speech.c +++ b/drivers/hsi/clients/cmt_speech.c @@ -1275,7 +1275,7 @@ static int cs_char_mmap(struct file *file, struct vm_area_struct *vma) if (vma->vm_end < vma->vm_start) return -EINVAL; - if (((vma->vm_end - vma->vm_start) >> PAGE_SHIFT) != 1) + if (vma_pages(vma) != 1) return -EINVAL; vma->vm_flags |= VM_IO | VM_DONTDUMP | VM_DONTEXPAND; |