]> git.baikalelectronics.ru Git - kernel.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)
commit81f0c1765f602702f6c7d55efb1e48779f54177e
treefc22bbfd80a37a3c5689f63ac57975c3ca2eaf4d
parent94f7391e4ef524fa758843b6d239be218c172b6c
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