OSDN Git Service

msm: ADSPRPC: use access_ok to validate pointers
authorc_mtharu <mtharu@codeaurora.org>
Mon, 27 Nov 2017 14:43:28 +0000 (20:13 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Mon, 4 Dec 2017 10:34:54 +0000 (02:34 -0800)
commitb3c277dac5b3c9df50b4a092f369c3e6f14af262
treef39b5d3d1706d2773653b4d86272f44ed1f6b248
parent501a8de7b638d28c32338a124908258509b55371
msm: ADSPRPC: use access_ok to validate pointers

Check the validity of the pointer in user space that you intend to
access. access_ok function simply checks that the address is likely
in user space, not in the kernel.

Change-Id: I936f73a2c2029f9e7ca12cc8fc06d0698e6710c0
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
drivers/char/adsprpc.c