diff options
author | Jan Kara <jack@suse.cz> | 2013-10-02 16:27:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-05 17:52:58 -0700 |
commit | f4ee2ccb6f9241c4bae2df66c296cf579d1487fb (patch) | |
tree | ee503ac1d14b61ad8dcf268de62d0d2e4995114a /drivers/staging/ced1401 | |
parent | d1a168eccfb99a84cea447726ad70ac854b5b6df (diff) | |
download | op-kernel-dev-f4ee2ccb6f9241c4bae2df66c296cf579d1487fb.zip op-kernel-dev-f4ee2ccb6f9241c4bae2df66c296cf579d1487fb.tar.gz |
ced1401: Convert driver to use get_user_pages_fast()
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ced1401')
-rw-r--r-- | drivers/staging/ced1401/ced_ioc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c index 2dbaf39e..62efd74 100644 --- a/drivers/staging/ced1401/ced_ioc.c +++ b/drivers/staging/ced1401/ced_ioc.c @@ -692,10 +692,7 @@ static int SetArea(DEVICE_EXTENSION *pdx, int nArea, char __user *puBuf, __func__, puBuf, dwLength, bCircular); /* To pin down user pages we must first acquire the mapping semaphore. */ - down_read(¤t->mm->mmap_sem); /* get memory map semaphore */ - nPages = get_user_pages(current, current->mm, ulStart, len, 1, 0, - pPages, NULL); - up_read(¤t->mm->mmap_sem); /* release the semaphore */ + nPages = get_user_pages_fast(ulStart, len, 1, pPages); dev_dbg(&pdx->interface->dev, "%s nPages = %d", __func__, nPages); if (nPages > 0) { /* if we succeeded */ |