OSDN Git Service

[media] media: s5p_mfc: Release ctx->ctx if failed to allocate ctx->shm
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Wed, 6 Aug 2014 01:22:08 +0000 (22:22 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 12:03:32 +0000 (09:03 -0300)
commit6c5c680b85deb98e1b90b5b3e112a6fa82c70b12
tree002fdd4007f9a61e6e7b01e4e0fcca14831d03d9
parentc44b6484db6e285cbc63bb8d400b5e8873e3a8d2
[media] media: s5p_mfc: Release ctx->ctx if failed to allocate ctx->shm

ctx->ctx should be released if the following allocation for ctx->shm
gets failed.

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c