]> git.baikalelectronics.ru Git - kernel.git/commit
thinkpad_acpi: buffer overflow in fan_get_status()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 1 Sep 2012 19:54:07 +0000 (12:54 -0700)
committerMatthew Garrett <mjg@redhat.com>
Thu, 13 Sep 2012 20:46:31 +0000 (16:46 -0400)
commit4434457b86fd050c24a57a55826fa0efa3cc2c6c
tree5b477baa91dc4ca2b344d160b780e1a3339275c9
parent9eada2060975308ae61c38b11e6686304b44c532
thinkpad_acpi: buffer overflow in fan_get_status()

The acpi_evalf() function modifies four bytes of data but in
fan_get_status() we pass a pointer to u8.  I have modified the
function to use type checking now.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/thinkpad_acpi.c