MLK-14473: hdmi: Fix ioctl implementation
authorRobert Chiras <robert.chiras@nxp.com>
Thu, 16 Mar 2017 10:15:50 +0000 (12:15 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:43 +0000 (15:21 -0500)
commitc4408139cea77428db725e6f8de45886ff3c13e2
treee09edfafb98078b90a510189c03348b583bf8a96
parent7db6ae6bd07901e745d64207c491e76e9227f8c0
MLK-14473: hdmi: Fix ioctl implementation

The function mxc_hdmi_ioctl is passing kernel memory to user-space. The
case for HDMI_IOC_GET_CPU_TYPE is passing the memory directly, which is
not permitted. Fixed this, by using put_user().

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
drivers/video/fbdev/mxc/mxc_hdmi.c