aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorXi Wang <[email protected]>2011-12-29 04:49:06 +0000
committerMatthew Garrett <[email protected]>2012-03-12 14:25:51 +0000
commite424fb8cc4e6634c10f8159b1ff5618cf7bab9c6 (patch)
tree1907ba5a04c791b676de548e62627aa50b795bc7 /lib/timerqueue.c
parentacer-wmi: No wifi rfkill on Lenovo machines (diff)
downloadkernel-e424fb8cc4e6634c10f8159b1ff5618cf7bab9c6.tar.gz
kernel-e424fb8cc4e6634c10f8159b1ff5618cf7bab9c6.zip
panasonic-laptop: avoid overflow in acpi_pcc_hotkey_add()
num_sifr could go negative since acpi_pcc_get_sqty() returns -EINVAL on error. Then it could bypass the sanity check (num_sifr > 255). The subsequent call to kzalloc() would allocate a small buffer, leading to a memory corruption. Signed-off-by: Xi Wang <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions