Merge "vidc: Flush the cached buffer only if the buffer is valid." into msm-3.0