diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2017-02-01 08:47:38 +0100 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2017-02-02 15:15:25 +0530 |
commit | d6d59c5a57ebe49e4aeca8e32760c076b4cb8f7f (patch) | |
tree | 90663afa7254980b0dc2b9e30418c5786670477e /drivers/gpu/drm/bridge | |
parent | 73a5d25d500656b9642b554117b0d9c870ba76c1 (diff) | |
download | op-kernel-dev-d6d59c5a57ebe49e4aeca8e32760c076b4cb8f7f.zip op-kernel-dev-d6d59c5a57ebe49e4aeca8e32760c076b4cb8f7f.tar.gz |
drm/bridge/sii8620: fix MSC message removal
Messages queue can be cleaned up by message callbacks, to avoid repeated
removal of current message it should be removed from the queue before
calling these callbacks.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1485935272-17337-12-git-send-email-a.hajda@samsung.com
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/sil-sii8620.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c index fb69353..a50ade6 100644 --- a/drivers/gpu/drm/bridge/sil-sii8620.c +++ b/drivers/gpu/drm/bridge/sil-sii8620.c @@ -272,11 +272,11 @@ static void sii8620_mt_work(struct sii8620 *ctx) ctx->mt_state = MT_STATE_READY; msg = list_first_entry(&ctx->mt_queue, struct sii8620_mt_msg, node); + list_del(&msg->node); if (msg->recv) msg->recv(ctx, msg); if (msg->continuation) msg->continuation(ctx, msg->ret); - list_del(&msg->node); kfree(msg); } |