Geert Uytterhoeven
dc1dc2f8a5
TTY: pmac_zilog, check existence of ports in pmz_console_init()
...
When booting a multi-platform m68k kernel on a non-Mac with "console=ttyS0"
on the kernel command line, it crashes with:
Unable to handle kernel NULL pointer dereference at virtual address (null)
Oops: 00000000
PC: [<0013ad28>] __pmz_startup+0x32/0x2a0
...
Call Trace: [<002c5d3e>] pmz_console_setup+0x64/0xe4
The normal tty driver doesn't crash, because init_pmz() checks
pmz_ports_count again after calling pmz_probe().
In the serial console initialization path, pmz_console_init() doesn't do
this, causing the driver to crash later.
Add a check for pmz_ports_count to fix this.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Finn Thain <fthain@telegraphics.com.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-25 08:54:25 -08:00
..
2013-11-25 08:52:53 -08:00
2013-11-07 10:34:46 -06:00
2013-03-18 16:17:20 -07:00
2013-01-15 22:30:15 -08:00
2013-05-10 07:22:35 -07:00
2013-09-06 13:26:27 -07:00
2013-09-06 13:26:27 -07:00
2013-10-03 16:09:47 -07:00
2013-10-03 16:09:47 -07:00
2013-08-27 16:17:33 -07:00
2013-08-30 14:11:27 -07:00
2013-09-26 14:29:58 -07:00
2013-10-17 13:31:19 -07:00
2013-08-27 16:17:34 -07:00
2013-09-26 14:29:58 -07:00
2013-10-16 13:08:16 -07:00
2013-09-26 15:44:46 -07:00
2013-03-18 16:26:33 -07:00
2013-03-18 16:26:33 -07:00
2013-01-15 22:30:15 -08:00
2013-08-27 16:17:34 -07:00
2013-07-26 16:01:20 -07:00
2013-08-27 16:24:33 -07:00
2013-09-26 14:29:58 -07:00
2012-11-01 08:50:01 -07:00
2013-11-07 12:17:06 +09:00
2013-01-15 22:30:15 -08:00
2013-08-12 11:35:32 -07:00
2013-10-16 13:08:16 -07:00
2013-10-29 17:01:02 -07:00
2013-02-04 15:35:26 -08:00
2013-09-04 12:26:36 +02:00
2013-08-12 11:37:48 -07:00
2013-08-27 16:17:34 -07:00
2012-02-08 15:04:32 -08:00
2013-08-27 16:17:34 -07:00
2012-03-08 11:47:02 -08:00
2013-09-06 11:14:33 -07:00
2013-10-16 13:08:16 -07:00
2013-07-31 17:56:15 -07:00
2013-08-27 16:17:34 -07:00
2013-10-29 16:34:11 -07:00
2013-10-16 13:16:19 -07:00
2013-09-26 14:29:58 -07:00
2013-10-29 16:26:54 -07:00
2013-07-31 17:56:15 -07:00
2013-08-27 16:22:59 -07:00
2013-07-26 16:13:29 -07:00
2013-03-18 16:19:44 -07:00
2013-01-15 22:30:15 -08:00
2013-10-05 18:03:01 -07:00
2013-08-27 16:17:34 -07:00
2013-08-27 16:17:35 -07:00
2013-06-03 10:21:33 -07:00
2013-10-31 09:03:20 -07:00
2013-10-16 13:16:19 -07:00
2013-11-25 08:54:25 -08:00
2013-08-27 16:17:35 -07:00
2013-08-12 11:10:16 -07:00
2013-08-27 16:17:35 -07:00
2013-10-16 13:16:18 -07:00
2013-09-26 15:41:38 -07:00
2013-09-26 14:29:59 -07:00
2013-01-15 22:30:15 -08:00
2013-07-31 17:56:15 -07:00
2013-09-26 15:44:45 -07:00
2013-07-26 16:03:05 -07:00
2013-01-15 22:30:15 -08:00
2013-09-26 15:41:38 -07:00
2013-10-07 00:13:58 -07:00
2013-10-25 11:16:19 +05:30
2013-03-25 14:06:45 -07:00
2013-09-26 15:41:39 -07:00
2013-10-29 16:26:54 -07:00
2013-01-15 22:30:15 -08:00
2013-08-27 16:24:33 -07:00
2012-02-10 10:44:35 -08:00
2013-06-03 10:21:33 -07:00
2013-10-16 13:08:16 -07:00
2013-10-16 13:08:16 -07:00
2013-10-16 13:08:16 -07:00
2013-09-03 14:50:40 -04:00
2013-08-12 11:35:31 -07:00
2013-02-13 08:38:45 -08:00
2013-11-12 16:52:17 +09:00
2013-07-31 17:56:15 -07:00
2013-10-16 13:22:16 -07:00
2013-10-29 09:26:11 -07:00
2013-01-15 22:30:15 -08:00