Commits
Liu Ying committed 3ab1d2d6d48
MLK-11918-3 video: mxc ipuv3 fb: Fix bailout path for ioctrl FBIO_ALLOC Resources(kmem and DMA) should be freed correctly in the bailout path of ioctrl FBIO_ALLOC. We should also delete mem->list from fb_alloc_list in the bailout path if necessary. The kmem leakage issue is reported by Coverity: if (get_user(size, argp)) Resource leak (RESOURCE_LEAK) leaked_storage: Variable mem going out of scope leaks the storage it points to. return -EFAULT; Signed-off-by: Liu Ying <Ying.Liu@freescale.com>