msm: kgsl: Use copy_struct_from_user() helper
Timeline semaphore ioctls use local implementation
kgsl_copy_struct_from_user() to validate and copy structs from
user to kernel memory. This can cause problem when user size is
greater than reserved kernel struct size.
Replace this with new kernel implementation of copy_struct_from_user()
helper to ensure correct alignment and access permissions before
proceeding forward.
Change-Id: I5891f355fe515e271c7470543822792572a42f3f
Signed-off-by:
Rohan Sethi <quic_rohsethi@quicinc.com>
Loading
Please register or sign in to comment