aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-03-18 15:08:01 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-03-22 01:23:00 +0100
commit4a798f508f5d0809f45c939e329e17b3eb0ffbc1 (patch)
tree66b0c18b068d71a62ee6c4ad5727815f78e10ac1 /Documentation
parentACPI / util: remove redundant check if element is NULL (diff)
downloadlinux-dev-4a798f508f5d0809f45c939e329e17b3eb0ffbc1.tar.xz
linux-dev-4a798f508f5d0809f45c939e329e17b3eb0ffbc1.zip
ACPI / util: cast data to u64 before shifting to fix sign extension
obj->buffer.pointer[i] should be cast to u64 to prevent an unintentional sign extension. For example, if pointer[7] is 0x80, then the value 0xffffffffff000000 is or'd into mask rather than the intended value 0xff00000000000000 Detected with static analysis by CoverityScan Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions