diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-05-26 13:07:26 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-06-11 19:12:33 +0300 |
commit | 14a638ab96c518f93386eae1ac460e459e775ea2 (patch) | |
tree | 0119e4964537c5295b28c3b2876a66baa73dfcbf /drivers/staging/media/atomisp/include | |
parent | 19ae08554fe873136ac3f1c0d66aa0f5ac9f69dc (diff) | |
download | linux-14a638ab96c518f93386eae1ac460e459e775ea2.tar.xz |
media: atomisp: use pin_user_pages() for memory allocation
Instead of using a hacked version of an old copy of
get_user_pages(), use pin_user_pages().
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/atomisp/include')
-rw-r--r-- | drivers/staging/media/atomisp/include/hmm/hmm_bo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/media/atomisp/include/hmm/hmm_bo.h b/drivers/staging/media/atomisp/include/hmm/hmm_bo.h index 7fcb93b6c0f5..39aea0cb2d33 100644 --- a/drivers/staging/media/atomisp/include/hmm/hmm_bo.h +++ b/drivers/staging/media/atomisp/include/hmm/hmm_bo.h @@ -130,6 +130,8 @@ struct hmm_buffer_object { struct list_head list; struct kref kref; + struct page **pages; + /* mutex protecting this BO */ struct mutex mutex; enum hmm_bo_type type; |