OSDN Git Service

ideapad: uninitialized data in ideapad_acpi_add()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Jun 2012 16:28:50 +0000 (19:28 +0300)
committerMatthew Garrett <mjg@redhat.com>
Tue, 26 Jun 2012 18:43:45 +0000 (14:43 -0400)
commit57f9616b79549e772cf4dd3aa1d2df5b6c8acdfa
tree7e2f256a627966eca82c532aef92d6f32198608d
parenta1071a5abf1f4d4a7f8324e21b8b32b1342013c7
ideapad: uninitialized data in ideapad_acpi_add()

We only initialize the high bits of "cfg".  It probably doesn't cause
a problem given that this is platform specific code and doesn't have to
worry about endianness etc.  But it's sort of messy.

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