[COMMON] g2d: fix the compat ioctl
authorHyesoo Yu <hyesoo.yu@samsung.com>
Tue, 27 Mar 2018 10:57:16 +0000 (19:57 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:33 +0000 (14:39 +0900)
commitf7b2532f780c02de1adc8f4d4da6eed90afcad28
tree73a93c5d909f87f56bc91f261b568637e310cf77
parent1876d2558a670054500f1ca8310cfa21d347c0a9
[COMMON] g2d: fix the compat ioctl

The variable of buffer is corrupted while looping,
so incorrect data is written to the user's area in
the loop.

And user address of buffer is possible to be
corrupted when union variable is not initialized,
so fix it.

Change-Id: I5bb38eb4dd548a868153a32ebd5b31a76a20f112
Signed-off-by: Hyesoo Yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d_drv.c