diff options
| author | Nicholas Troast <ntroast@codeaurora.org> | 2017-01-16 11:08:07 -0800 |
|---|---|---|
| committer | Nicholas Troast <ntroast@codeaurora.org> | 2017-01-17 12:21:05 -0800 |
| commit | 6b20920b2d2bdbc13fe7b9f405c06d2cabf9763c (patch) | |
| tree | c186a06873578d2df25496998c50eba58e6f3c9e /kernel/task_work.c | |
| parent | f0ea5d918d4916715bd041175b92004224753e6d (diff) | |
qcom-charger: qpnp-fg: fix oob array access and uninitialized return
pos is incremented by bytes_read which could exceed the boundary of
kbuf. Fix this by checking the bounds of pos.
resched_ms is used when uninitialized. Initialize it.
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I3a01d59bb5ed53666307a5210a684c7d9fd654fc
Diffstat (limited to 'kernel/task_work.c')
0 files changed, 0 insertions, 0 deletions
