diff options
author | Rob Clark <robdclark@chromium.org> | 2020-10-23 09:51:08 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-11-04 16:00:56 -0800 |
commit | 20224d715a882210428ea62bba93f1bc4a0afe23 (patch) | |
tree | cab4d2b0e55f4b85672eb1d61f3d3b76b76ae162 /drivers/gpu/drm/msm/msm_gpu.c | |
parent | 599089c6af68300207ee1823230d31eda1f15959 (diff) | |
download | lwn-20224d715a882210428ea62bba93f1bc4a0afe23.tar.gz lwn-20224d715a882210428ea62bba93f1bc4a0afe23.zip |
drm/msm/submit: Move copy_from_user ahead of locking bos
We cannot switch to using obj->resv for locking without first moving all
the copy_from_user() ahead of submit_lock_objects(). Otherwise in the
mm fault path we aquire mm->mmap_sem before obj lock, but in the submit
path the order is reversed.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.c')
0 files changed, 0 insertions, 0 deletions