diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-03-22 18:21:58 +0000 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-01 22:42:25 +0200 |
commit | e6b3c8ca0222f6633516c0461a713e7bddc4f076 (patch) | |
tree | 1f7b957d9954d7b2d5057521e3376486a34195cb /fsdev | |
parent | 366c9332450caace5843c17806ba4879bf2d005c (diff) |
hw/versatilepb, realview: Fix condition for instantiation of onboard NIC
Correct the condition determining whether we instantiate the onboard
NIC or a PCI card NIC on VersatilePB and Realview boards. This was broken
in two ways:
(1) if the user asked for two default NICs ("-net nic -net nic") we would
crash trying to strcmp() a NULL pointer
(2) if the user asked for two NICs explicitly of the same model as the
onboard NIC (eg "-net nic,model=smc91c111 -net nic,model=smc91c111")
we would try to instantiate two onboard NICs at the same address.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'fsdev')
0 files changed, 0 insertions, 0 deletions