diff options
author | Rajat Jain <[email protected]> | 2019-02-15 16:19:20 -0800 |
---|---|---|
committer | Darren Hart (VMware) <[email protected]> | 2019-02-23 09:21:02 -0800 |
commit | 4a5861f714293767980e4948c9a7c9e5e09c9b94 (patch) | |
tree | 0a40c8f76e60c0c1d61dd05dbfbfb8e5ae250147 /scripts/mod/empty.c | |
parent | f27e1d1826d0392c0841e6f098b88e2da166163a (diff) |
platform/x86: intel_pmc_core: Avoid a u32 overflow
The register (SLP_S0_RES) at offset slp_s0_offset is a 32 bit register.
The pmc_core_adjust_slp_s0_step() could overflow the u32 value while
returning it after adjusting the step. Thus change to u64, this is
already accounted for in debugfs attribute (that wants to output a
64 bit value).
Signed-off-by: Rajat Jain <[email protected]>
Acked-by: Rajneesh Bhardwaj <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Darren Hart (VMware) <[email protected]>
Diffstat (limited to 'scripts/mod/empty.c')
0 files changed, 0 insertions, 0 deletions