CC: Naren Sankar <nsankar@xxxxxxxxxxxx> CC: Jarod Wilson <jarod@xxxxxxxxxxxx> CC: Scott Davilla <davilla@xxxxxxx> CC: Manu Abraham <abraham.manu@xxxxxxxxx> Signed-off-by: Jan Kara <jack@xxxxxxx> --- 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(¤t->mm->mmap_sem); - res = get_user_pages(current, current->mm, uaddr, nr_pages, rw == READ, - 0, dio->pages, NULL); - up_read(¤t->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, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>