v4l2: fix a decoder release after oom [1/1]
authorSong Zhao <song.zhao@amlogic.com>
Mon, 14 Dec 2020 19:31:27 +0000 (11:31 -0800)
committerSong Zhao <song.zhao@amlogic.com>
Mon, 14 Dec 2020 22:05:24 +0000 (14:05 -0800)
commite9ee0ea8fe068067d3c5dde98d5f8d5d07ad7227
treeacdacc86c569e3aba9d0fd640cd5f7407346c754
parentbc28d20f52e76d4f172bbf333f925bec7d8b0010
v4l2: fix a decoder release after oom [1/1]

PD#SWPL-39061

Problem:
When oom happens, decoder is leaked.

Solution:
correct error handling

Verify:
T318

Change-Id: I7d0575be2a58aad0bb3589362b45f56fda24e501
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
drivers/amvdec_ports/decoder/vdec_h264_if.c
drivers/amvdec_ports/decoder/vdec_hevc_if.c
drivers/amvdec_ports/decoder/vdec_mjpeg_if.c
drivers/amvdec_ports/decoder/vdec_mpeg12_if.c
drivers/amvdec_ports/decoder/vdec_mpeg4_if.c