[COMMON] staging: android: ion_test: fix copying incorrect size to userspace
authorCho KyongHo <pullip.cho@samsung.com>
Fri, 9 Jun 2017 13:53:47 +0000 (22:53 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:22 +0000 (19:45 +0900)
commit65ca9cf76c23b23be40fb409925dfe9a26591f94
treeb1979a24abefd9c663536d4f3a009898c8c91ec6
parent590b6b1b27c31c87409874974bd5b20c50d06674
[COMMON] staging: android: ion_test: fix copying incorrect size to userspace

ion_test_ioctl() copies the data to userspace if ioctl command
includes read property. But it copies incorrect number of bytes
because 'data' in sizeof(data) is union of various length data
structures.

Change-Id: I3bcafa6823a38b8ce949f90086dbc9f4c5d3e8c3
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/ion_test.c