Paolo Bonzini
927411fa42
apic: do not dereference pointer before it is checked for NULL
...
Right now you only get to apic_init_reset if you have an APIC
(do_cpu_init is reached only if CPU_INTERRUPT_INIT is set and
that only happens in hw/intc/apic.c). However, this is wrong
because for example a port 92 or keyboard controller reset is
really an INIT, and that can happen also with no APIC. So
keep the check and fix the error that Coverity reported.
Reported-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-01-26 12:27:05 +01:00
..
2015-01-09 23:41:11 +01:00
2015-01-26 12:22:44 +01:00
2014-10-03 10:30:33 +01:00
2015-01-26 12:22:44 +01:00
2015-01-22 11:04:18 +01:00
2015-01-26 12:22:44 +01:00
2014-08-15 19:12:48 +04:00
2015-01-26 12:22:44 +01:00
2015-01-26 12:22:44 +01:00
2014-11-03 19:51:56 +03:00
2014-10-20 14:02:25 +02:00
2015-01-19 13:33:26 +01:00
2015-01-26 12:22:44 +01:00
2014-11-04 23:26:12 +01:00
2014-09-02 22:38:16 +04:00
2015-01-26 12:22:44 +01:00
2015-01-13 13:43:29 +00:00
2015-01-26 12:22:44 +01:00
2015-01-26 12:27:05 +01:00
2014-08-18 12:06:21 +02:00
2015-01-26 12:22:44 +01:00
2015-01-08 13:17:55 +02:00
2014-11-03 00:59:10 +03:00
2014-11-23 12:12:46 +02:00
2014-11-03 00:59:10 +03:00
2014-11-17 11:41:03 +01:00
2015-01-26 12:26:55 +01:00
2014-09-09 13:41:43 +02:00
2015-01-26 12:22:44 +01:00
2015-01-16 11:54:30 +00:00
2014-11-03 00:59:10 +03:00
2014-11-24 20:57:11 +02:00
2014-10-15 05:03:13 +02:00
2015-01-07 16:16:24 +01:00
2014-10-24 12:19:11 +01:00
2015-01-08 17:32:27 +00:00
2015-01-12 10:14:04 +01:00
2015-01-14 10:38:57 +01:00
2015-01-26 12:22:44 +01:00
2014-10-20 14:02:25 +02:00
2014-12-22 23:39:15 +00:00
2014-12-22 23:39:15 +00:00
2014-08-15 18:54:40 +04:00
2015-01-26 12:22:44 +01:00
2014-12-10 11:30:55 +03:00
2014-11-02 10:04:34 +03:00
2014-09-09 13:41:43 +02:00
2015-01-26 12:22:44 +01:00
2015-01-09 08:50:53 -07:00
2015-01-05 14:02:47 +05:30
2015-01-26 12:22:44 +01:00
2015-01-13 11:49:46 +00:00
2014-10-20 14:02:25 +02:00
2014-11-03 01:00:37 +03:00
2014-12-19 15:24:06 -07:00