diff options
| author | Srivatsa Vaddagiri <vatsa@codeaurora.org> | 2014-08-07 17:31:08 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:17 -0700 |
| commit | 35e98218fd1d081a0081a0a6e73847f54e4b5307 (patch) | |
| tree | fa73db4b73491974aa5f327ff07415719761d311 /include/linux/workqueue.h | |
| parent | 13b29fc0f7a21a1c854f104f1a7a421342786a6b (diff) | |
sched: initialize env->flags variable to 0
env->flags and env->new_dst_cpu fields are not initialized in
load_balance() function. As a result, load_balance() could wrongly see
LBF_SOME_PINNED flag set and access (bogus) new_dst_cpu's runqueue
leading to invalid memory reference. Fix this by initializing
env->flags field to 0. While we are at it, fix similar issue in
active_load_balance_cpu_stop() function, although there is no harm
present currently in that function with uninitialized env->flags
variable.
Change-Id: Ied470b0abd65bf2ecfa33fa991ba554a5393f649
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
