diff options
author | Kristian H. Kristensen | 2019-03-20 18:09:10 +0100 |
---|---|---|
committer | Rob Clark | 2019-04-19 20:50:07 +0200 |
commit | b673499ae738e7790b1b9f65e784999e5804abd3 (patch) | |
tree | 0ff449011902700b976bb2370ac1951e292a3055 /drivers/ptp/ptp_qoriq.c | |
parent | drm/msm: Stop dropping struct_mutex in recover_worker() (diff) | |
download | kernel-qcow2-linux-b673499ae738e7790b1b9f65e784999e5804abd3.tar.gz kernel-qcow2-linux-b673499ae738e7790b1b9f65e784999e5804abd3.tar.xz kernel-qcow2-linux-b673499ae738e7790b1b9f65e784999e5804abd3.zip |
drm/msm: Split submit_lookup_objects() into two loops
First loop does copy_from_user() without the table lock held and
just stores the handle. Second loop looks up buffer objects with the
table_lock held without potentially blocking or faulting. This lets us
clean up a bunch of custom, non-faulting copy_from_user() code.
Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/ptp/ptp_qoriq.c')
0 files changed, 0 insertions, 0 deletions