commit | 825423a102147d899485d162b376fac44931c081 | [log] [tgz] |
---|---|---|
author | Hariram Purushothaman <hariramp@codeaurora.org> | Thu May 04 14:25:27 2017 -0700 |
committer | Hariram Purushothaman <hariramp@codeaurora.org> | Thu May 04 18:36:38 2017 -0700 |
tree | de6bbaed03cea0f04f598e0da273cf4cf13fad2d | |
parent | e40d860d25652261d868ffebcbafef810ffb577d [diff] |
msm: camera: Fix invalid user pointer access in CONFIG_COMPAT mode When 32-bit task is calling IOCTLs into kernel, accessing the IOCTL data will cause an access violation if the data is not copied into kernel memory first. To avoid this, use copy_from_user() and copy_to_user() while handling IOCTLs. Change-Id: I343fa8f4ed598507e6603b77763a724bda1e1ad0 Signed-off-by: Hariram Purushothaman <hariramp@codeaurora.org>