OSDN Git Service

drm/msm/sde: take irq callback lock before reading cb list
authorLloyd Atkinson <latkinso@codeaurora.org>
Mon, 18 Sep 2017 20:51:24 +0000 (16:51 -0400)
committerLakshmi Narayana Kalavala <lkalaval@codeaurora.org>
Sat, 17 Mar 2018 00:26:21 +0000 (17:26 -0700)
commit3c6964a08c97236bf9a4938cf67becae4a0c5bf5
tree36aea76415b8f69f823da504b14a7cc3f2d6fb01
parent1f9861ad386a36c435cf664c5a99e0e15de54c00
drm/msm/sde: take irq callback lock before reading cb list

Take the callback spinlock before checking whether the callback
table list is empty. This resolves a race condition where the
callback list could be empty during the servicing of an
interrupt.

Change-Id: I8d59c0211526173ce98c8ca2dac36ec4743dc8f8
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
drivers/gpu/drm/msm/sde/sde_core_irq.c