Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] mtk-vcodec: check the vp9 decoder buffer index from VPU
@ 2017-03-07 14:42 Wu-Cheng Li
  2017-03-07 14:42 ` [PATCH v2 1/1] " Wu-Cheng Li
  0 siblings, 1 reply; 3+ messages in thread
From: Wu-Cheng Li @ 2017-03-07 14:42 UTC (permalink / raw)
  To: pawel-FA/gS7QP4orQT0dZR+AlfA, tiffany.lin-NuS5LvNUpcJWk0Htik3J/w,
	andrew-ct.chen-NuS5LvNUpcJWk0Htik3J/w,
	mchehab-DgEjT+Ai2ygdnm+yROfE0A,
	matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w,
	hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w,
	wuchengli-hpIqsD4AKlfQT0dZR+AlfA
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-media-u79uwXL29TY76Z2rM5mHXA

From: Wu-Cheng Li <wuchengli-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>

This patch guards against the invalid buffer index from
VPU firmware.

v2: also check the result of vdec_if_decode in mtk_vdec_worker.

Wu-Cheng Li (1):
  mtk-vcodec: check the vp9 decoder buffer index from VPU.

 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 23 ++++++++++++++-----
 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h |  2 ++
 .../media/platform/mtk-vcodec/vdec/vdec_vp9_if.c   | 26 ++++++++++++++++++++++
 drivers/media/platform/mtk-vcodec/vdec_drv_if.h    |  2 ++
 4 files changed, 48 insertions(+), 5 deletions(-)

-- 
2.12.0.rc1.440.g5b76565f74-goog

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-08  3:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-07 14:42 [PATCH v2 0/1] mtk-vcodec: check the vp9 decoder buffer index from VPU Wu-Cheng Li
2017-03-07 14:42 ` [PATCH v2 1/1] " Wu-Cheng Li
2017-03-08  3:11   ` Tiffany Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox