MLK-21507 VPU Decoder: kernel panic if seek when video playing
authorShijie Qin <shijie.qin@nxp.com>
Sat, 20 Apr 2019 07:17:57 +0000 (15:17 +0800)
committerShijie Qin <shijie.qin@nxp.com>
Mon, 22 Apr 2019 09:45:46 +0000 (17:45 +0800)
commit4e92d1538cff448e1d3c5c6c5852932b97ecaf0e
treed99ca21e41cfe360c0e760993a86fe59ba5489d1
parent6764eb3ae938b97f7fa9861f256427fcb6b619d2
MLK-21507 VPU Decoder: kernel panic if seek when video playing

    The same buffer prepend to the list twice at
    'VID_API_EVENT_REL_FRAME_BUFF'event and vpu_buf_queue()
    cause list form a dead cycle.
    Add an verification before prepend to list at vpu_buf_queue().

Unable to handle kernel paging request at virtual address dead000000000100
[<ffff000008bce7f4>] wait_right_buffer+0x60/0xac
[<ffff000008bd28f0>] vpu_api_event_handler+0xc64/0x1990
[<ffff000008bd3704>] vpu_msg_instance_work+0xe8/0x12c
[<ffff0000080f8518>] process_one_work+0x140/0x3f8
[<ffff0000080f8908>] worker_thread+0x138/0x3e4
[<ffff0000080fed70>] kthread+0x104/0x130
[<ffff000008085064>] ret_from_fork+0x10/0x18

Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
drivers/mxc/vpu_malone/vpu_b0.c