[RAMEN9610-10029][COMMON] media: mfc: fix the potential memory leak
authorSunyoung Kang <sy0816.kang@samsung.com>
Thu, 25 Oct 2018 00:05:38 +0000 (09:05 +0900)
committerhskang <hs1218.kang@samsung.com>
Fri, 28 Dec 2018 09:54:03 +0000 (18:54 +0900)
commite959284c0a2aba695b8aa929bf5b37f484abc6b8
treee18122504fb3ef286a4fb08c1863d550528eb873
parent38aa413f2e96ac1f09878538ec9bf082cc3207d6
[RAMEN9610-10029][COMMON] media: mfc: fix the potential memory leak

If user calls repeatedly s_fmt(), the roi_buffer will be re-allocated and
it can be memory leak. So this add to check if it is already allocated.

Change-Id: I0eea5f745c13630ce951f4c45109a01e92ddb7a9
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
drivers/media/platform/exynos/mfc/mfc_buf.c