Android 6.0.1 Release 0.86
Fix "[Security Vulnerability] Thermal:potential buffer overflow" issue

Problem:
lack of boundary check of user input parameter before copy_from_user.

Solution:
Add boundary protection to prevent buffer overflow

Bug num:28085410

Change-Id: I178730c373ed3eab3e197b10362c987df659e4c3
Signed-off-by: yang-cy.chen <yang-cy.chen@mediatek.com>
(cherry picked from commit e2c408685e93f73ca16b9d5bc23a186f258a1617)
2 files changed