commit | 59cfc45f17d6d1dda2990e6f5a94df24a18330b8 | [log] [tgz] |
---|---|---|
author | Jan Kiszka <jan.kiszka@siemens.com> | Tue May 05 08:26:27 2015 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun May 10 19:10:07 2015 +0200 |
tree | 37c05b196a9f91f8c28a9c1a4e585ec5973650e4 | |
parent | 24ee4df12216a0b1c9a0c22f83fbf366eb216d33 [diff] |
serial: 8250: Do nothing if nr_uarts=0 When nr_uarts was set to 0 (via config or 8250_core.nr_uarts), we crash early on x86 because serial8250_isa_init_ports dereferences base_ops which remains NULL. In fact, there is nothing to do for all the callers of serial8250_isa_init_ports if there are no uarts. Based on suggestions by Peter Hurley. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>