summaryrefslogtreecommitdiff
path: root/ipc/namespace.c
diff options
context:
space:
mode:
authorgaurav jindal <gauravjindal1104@gmail.com>2017-09-08 00:07:43 +0530
committerTodd Poynor <toddpoynor@google.com>2017-09-08 20:16:50 +0000
commit101ef8fff5eb3b130917ba8c8bfc0def91b6e423 (patch)
tree7d05001368da90cfbec3a15df396ef17532fc9cd /ipc/namespace.c
parent1e07bd20e4227a009101c8f5c5f3ed66b5ef30d3 (diff)
drivers: cpufreq: checks to avoid kernel crash in cpufreq_interactive
In cpufreq_governor_interactive, driver throws warning with WARN_ON for !tunables and event != CPUFREQ_GOV_POLICY_INIT. In case when tunables is NULL for event other than CPUFREQ_GOV_POLICY_INIT, kernel will crash as there is no safe check available before accessing tunables. So to handle such case and avoid the kernel crash, return -EINVAL if WARN_ON returns TRUE. Change-Id: I7a3a22d58e3c8a315a1cc1d31143649dc8807dee Signed-off-by: gaurav jindal <gauravjindal1104@gmail.com>
Diffstat (limited to 'ipc/namespace.c')
0 files changed, 0 insertions, 0 deletions