mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
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]>