CC: Naren Sankar <[email protected]>
CC: Jarod Wilson <[email protected]>
CC: Scott Davilla <[email protected]>
CC: Manu Abraham <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
---
 drivers/staging/crystalhd/crystalhd_misc.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/staging/crystalhd/crystalhd_misc.c 
b/drivers/staging/crystalhd/crystalhd_misc.c
index 51f698052aff..f2d350985e46 100644
--- a/drivers/staging/crystalhd/crystalhd_misc.c
+++ b/drivers/staging/crystalhd/crystalhd_misc.c
@@ -751,10 +751,7 @@ enum BC_STATUS crystalhd_map_dio(struct crystalhd_adp 
*adp, void *ubuff,
                }
        }
 
-       down_read(&current->mm->mmap_sem);
-       res = get_user_pages(current, current->mm, uaddr, nr_pages, rw == READ,
-                            0, dio->pages, NULL);
-       up_read(&current->mm->mmap_sem);
+       res = get_user_pages_fast(uaddr, nr_pages, rw == READ, dio->pages);
 
        /* Save for release..*/
        dio->sig = crystalhd_dio_locked;
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to