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)
commiteceeb4371240aff22e9a535a2bc57d2311820942
tree5b477baa91dc4ca2b344d160b780e1a3339275c9
parentf661848b74b33069b0b7068c414bd282c407781d
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