forked from rubenslte/android_kernel_samsung_msm8226
base: genlock: Zero a structure before sending it to user space
In the handler for GENLOCK_IOC_EXPORT zero the entire genlock_lock structure before passing it to the user. CRs-fixed: 552303 Change-Id: Ic0dedbad257bf0a448d0bf67a14a3932b7925bfc Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
@@ -788,6 +788,8 @@ static long genlock_dev_ioctl(struct file *filep, unsigned int cmd,
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
memset(¶m, 0, sizeof(param));
|
||||
|
||||
param.fd = ret;
|
||||
|
||||
if (copy_to_user((void __user *) arg, ¶m,
|
||||
|
||||
Reference in New Issue
Block a user