eepro100: Don't allow guests to fail assertions
commit7f1e9d4e138f5baf1e862a1221ba13eee7dcce9e
authorKevin Wolf <kwolf@redhat.com>
Wed, 23 Sep 2009 15:42:42 +0000 (23 17:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:52 +0000 (5 09:32 -0500)
tree42656dd1f56c384763fc74e485d11c3aaca2eb17
parent80ee15a6b274dfcedb0ad7db8c9e7d392210d6a1
eepro100: Don't allow guests to fail assertions

The idea of using assert() for input validation is rather questionable.
Let's remove it from eepro100, so that guests need to find more interesting
ways if they want to crash qemu.

This patch replaces asserts that are directly dependent on guest-accessible
data by other means of error handling.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/eepro100.c