commit | d2cbabad6fbf5d837316127a5cdbc459297049c2 | [log] [tgz] |
---|---|---|
author | Surajit Podder <spodder@codeaurora.org> | Tue May 09 18:48:05 2017 +0530 |
committer | Maheshwar Ajja <majja@codeaurora.org> | Tue Jun 06 14:35:34 2017 -0700 |
tree | 6c15a84191196de522e30a0615f682d4e87fdaf3 | |
parent | 5915565f0d2c854e8a95842d13dff035386a3245 [diff] |
msm: vidc: Copy user buffers to kernel memory before access trigger_ssr_write directly accesses user buffer, which can lead to crash. Copy user buffer to kernel memory before access. Also, set initial value for ssr_trigger_val, and use kstrtoul instead of sscanf, with proper checking of return code. Change-Id: I94b1c14a8ae4628cb6ac0ee7f3bd38b0c79f088b Signed-off-by: Surajit Podder <spodder@codeaurora.org> Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>