]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/nouveau: Grab payload lock in nv50_msto_payload()
authorLyude Paul <lyude@redhat.com>
Fri, 11 Jan 2019 00:53:39 +0000 (19:53 -0500)
committerLyude Paul <lyude@redhat.com>
Fri, 11 Jan 2019 01:38:34 +0000 (20:38 -0500)
commit7aa275ca0eaedd206f1abdc547e333557ae504c9
treefc22bbfd80a37a3c5689f63ac57975c3ca2eaf4d
parentd79a3c52f34b648c56794e14364cc5169af2202f
drm/nouveau: Grab payload lock in nv50_msto_payload()

Going through the currently programmed payloads isn't safe without
holding mgr->payload_lock, so actually do that and warn if anyone tries
calling nv50_msto_payload() in the future without grabbing the right
locks.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@redhat.com>
Cc: Jerry Zuo <Jerry.Zuo@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Juston Li <juston.li@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190111005343.17443-17-lyude@redhat.com
drivers/gpu/drm/nouveau/dispnv50/disp.c