commit | 1e76f61bb001b93795a227f8f808104b6c10b048 | [log] [tgz] |
---|---|---|
author | Jordan Crouse <jcrouse@codeaurora.org> | Wed Aug 08 13:24:21 2012 -0600 |
committer | Linux Build Service Account <lnxbuild@localhost> | Fri Aug 10 01:46:43 2012 -0600 |
tree | 9ac1f9e2317488ce34d6cb39f3c59af9aac0726a | |
parent | 4b5fbd4f91c4e9a81e14280c1017f02c76cb0128 [diff] |
msm: kgsl: Detect and avoid malformed ioctl codes Because we were using _IO_NR, one could construct a malformed ioctl code that would avoid allocating memory yet go to a function that expected that memory. Still use _IO_NR to index the array of ioctls, but check that the full values match before jumping to the helper function. CRs-fixed: 385592 Change-Id: Ic0dedbaded469035bd0a2bb0f20fecb2a3045ca5 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>