]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / tables: Check if id is NULL in acpi_table_parse()
authortangchen <tangchen@cn.fujitsu.com>
Mon, 6 Jan 2014 08:43:54 +0000 (16:43 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 6 Jan 2014 11:33:05 +0000 (12:33 +0100)
commit4ec67a70bf182118eea1b5187fa5b4ce0cef611f
treeae884687c79a68cd9ed28f01813402ba6f5dbe16
parentd9957c8a6e36096740d11a7dd8e61d6ff40f69f6
ACPI / tables: Check if id is NULL in acpi_table_parse()

strncmp() does not check if the params are NULL. In acpi_table_parse(),
if @id is NULL, the kernel will panic.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/tables.c