diff options
author | Hugh Dickins <hugh.dickins@tiscali.co.uk> | 2009-08-06 23:18:12 +0000 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-08-31 22:12:03 -0400 |
commit | 718fb0de8ff88f71b3b91a8ee8e42e60c88e5128 (patch) | |
tree | df81c64e25966c6956a8c43f3894fc54d16650a3 /drivers/acpi/acpica/nspredef.c | |
parent | 49ae80c9944401222e47108883c486b5a5a24006 (diff) | |
download | linux-stable-718fb0de8ff88f71b3b91a8ee8e42e60c88e5128.tar.gz linux-stable-718fb0de8ff88f71b3b91a8ee8e42e60c88e5128.tar.bz2 linux-stable-718fb0de8ff88f71b3b91a8ee8e42e60c88e5128.zip |
ACPI: fix NULL bug for HID/UID string
acpi_device->pnp.hardware_id and unique_id are now allocated pointers,
replacing the previous arrays. acpi_device_install_notify_handler()
oopsed on the NULL hid when probing the video device, and perhaps other
uses are vulnerable too. So initialize those pointers to empty strings
when there is no hid or uid. Also, free hardware_id and unique_id when
when acpi_device is going to be freed.
http://bugzilla.kernel.org/show_bug.cgi?id=14096
Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nspredef.c')
0 files changed, 0 insertions, 0 deletions