]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: vchiq_2835_arm: Use PAGE_MASK macro
authorStefan Wahren <stefan.wahren@i2se.com>
Thu, 25 May 2017 22:26:18 +0000 (00:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 May 2017 15:02:30 +0000 (17:02 +0200)
Use the PAGE_MASK instead of open code it.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c

index eeeee1bf68b7ae74e4913872cf7effae14e022d0..0159ca4407d8a8faeba3918e260986fdc1c120c8 100644 (file)
@@ -474,7 +474,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type,
        } else {
                down_read(&task->mm->mmap_sem);
                actual_pages = get_user_pages(
-                                         (unsigned long)buf & ~(PAGE_SIZE - 1),
+                                         (unsigned long)buf & PAGE_MASK,
                                          num_pages,
                                          (type == PAGELIST_READ) ? FOLL_WRITE : 0,
                                          pages,