[PATCH 1/1] acpi: check return value of acpi_os_map_memory

2013-10-27 Thread RUC_SoftSec
Function acpi_os_map_memory() may return a NULL pointer, it should be validated non-NULL before used. This bug is found by a static tool developed by RUC_SoftSec, supported by China.X.Orion. Signed-off-by: RUC_SoftSec --- drivers/acpi/osl.c |2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 1/1] tty: Add NULL check to return value of kzalloc()

2013-10-27 Thread RUC_SoftSec
Function kzalloc() may return a NULL pointer, it should be checked against NULL before used. This bug is found by a static analysis tool developed by RUC_SoftSec, supported by China.X.Orion. Signed-off-by: RUC_SoftSec --- drivers/tty/vt/vt.c | 14 -- 1 file changed, 8 insertions