Commit Graph

6 Commits

Author SHA1 Message Date
LuK1337 fc9499e55a Import latest Samsung release
* Package version: T713XXU2BQCO

Change-Id: I293d9e7f2df458c512d59b7a06f8ca6add610c99
2017-04-18 03:43:52 +02:00
Manaf Meethalavalappu Pallikunhi 05e9c8cde9 msm: limits: Check user buffer size before copying to local buffer
User input data is passed in from userspace through debugfs interface
of supply lm core to validate supply lm core functionality. Ensure
user buffer size is not greater than expected stack buffer size
to avoid out of bounds array accesses.

Change-Id: I5a93774855241b50895c5e2b3ff939e4c33a0185
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2016-04-26 05:36:51 -07:00
Manaf Meethalavalappu Pallikunhi 7a12df1f73 msm: limits: Clean up SUPPLY_LM driver
Fix NULL pointer dereference and possible array over flow
scenarios in SUPPLY_LM driver.

Change-Id: Id895ee97d0c45eb7f3e1e8017dfe6c399dbd76e8
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2015-02-27 20:29:41 +05:30
Manaf Meethalavalappu Pallikunhi accb100193 msm: limits: Remove devices init and de-init from probe of supply lm
Remove supply lm devices init and de-init from probe function.
Devices initialization happens only when user requests to enable it.
Cleanup driver code in the error path to avoid any unexpected
behaviour.

Change-Id: Id43a9118173d3cd192b6b91e2cb33fc34e2b0126
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2015-02-16 23:24:32 +05:30
Manaf Meethalavalappu Pallikunhi b94c6d6f87 msm: thermal: Fix potential memory leak in sensor manager API in KTM
Cancel sensor trip for both high and low thresholds and fix memory
leak in sensor_mgr_remove_threshold API. Modify sensor manager APIs
to use client device to allocate/release memory for thresholds
using devm_kzalloc and devm_kfree.

Change-Id: Icf3b0253d72441e192be5f87c04bdf94799bb036
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2015-02-16 16:56:24 +05:30
Manaf Meethalavalappu Pallikunhi 2b81902ec5 msm: limits: Add S1 supply current limiting driver for MSM8909
This driver is a current limit management module to help manage
instantaneous peak current drawn by multiple subsystems on shared
supply. The inputs to the mitigation algorithm are current states
of different subsystems sharing this supply like cpu frequency,
gpu frequency, number of cores online, soc temperature, core leakage,
and modem state. It throttles cpu frequency and limits number of
online cores to reduce the dynamic current so as to keep the total
current drawn from supply in safe limits.

Change-Id: I4592b8be48bad3709e8cfb09da53f23279a8ff9b
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2015-01-29 06:58:48 -08:00