commit | e424fb8cc4e6634c10f8159b1ff5618cf7bab9c6 | [log] [tgz] |
---|---|---|
author | Xi Wang <xi.wang@gmail.com> | Wed Dec 28 23:49:06 2011 -0500 |
committer | Matthew Garrett <mjg@redhat.com> | Mon Mar 12 10:25:51 2012 -0400 |
tree | 1907ba5a04c791b676de548e62627aa50b795bc7 | |
parent | 461e74377cfcfc2c0d6bbdfa8fc5fbc21b052c2a [diff] |
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 <xi.wang@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>