]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/tty/serial/pch_uart.c: don't oops if dmi_get_system_info returns NULL
authorAlexander Stein <alexander.stein@systec-electronic.com>
Wed, 15 Jun 2011 22:08:55 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Jun 2011 03:04:02 +0000 (20:04 -0700)
commitb0f003f894ee6964970412b3a8e209ed7c677387
tree10a6408fa9953a484e7fcc629b433a9252c0a6de
parentb91eb3dbbd00141950dc684a7018c7ac4bd3c79e
drivers/tty/serial/pch_uart.c: don't oops if dmi_get_system_info returns NULL

If dmi_get_system_info() returns NULL, pch_uart_init_port() will
dereferencea a zero pointer.

This oops was observed on an Atom based board which has no BIOS, but
a bootloder which doesn't provide DMI data.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Cc: Greg KH <gregkh@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/tty/serial/pch_uart.c