MLK-22640 VPU Decoder: enhance check free space before add padding data
authorShijie Qin <shijie.qin@nxp.com>
Wed, 18 Sep 2019 08:12:23 +0000 (16:12 +0800)
committerShijie Qin <shijie.qin@nxp.com>
Thu, 24 Oct 2019 10:54:35 +0000 (18:54 +0800)
commit574cf1596914489b19bdf2613ab82589da864278
tree5e24beacb305a7e1724727a4b50dad4171142627
parent0bab60e68f71ed9638b2e7759baf09f5572f818a
MLK-22640 VPU Decoder: enhance check free space before add padding data

Free space may not enough when (end - wptr < SCODE_SIZE),
add this check.

Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
(cherry picked from commit ce944686a765f514a70e4731379179df30dbba0a)
drivers/mxc/vpu_malone/vpu_b0.c