Files
xemu/block
Markus Armbruster 172fc4dd33 iscsi: Don't use error_is_set() to suppress additional errors
Using error_is_set(errp) that way can sweep programming errors under
the carpet when we get called incorrectly with an error set.

Commit 24d3bd6 added a broken error path to iscsi_do_inquiry(): it
first calls error_setg(), then jumps to the preexisting error label,
where error_setg() gets called again, triggering an assertion failure.

Commit cbee81f fixed this by guarding the second error_setg() with an
error_is_set().

Replace this fix by a simpler and safer one: jump right behind the
second error_setg().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-04-25 18:05:06 +02:00
..
2014-04-11 13:59:49 +02:00
2013-12-20 16:26:16 +01:00
2014-02-21 21:02:24 +01:00
2014-03-25 14:09:50 +01:00
2013-08-19 15:52:19 +02:00
2014-02-17 11:57:23 -05:00
2014-04-01 15:22:35 +02:00
2014-03-25 14:09:50 +01:00
2014-02-17 11:57:23 -05:00
2014-03-25 14:09:50 +01:00
2013-09-12 10:12:48 +02:00
2014-03-25 14:09:50 +01:00
2014-04-01 13:59:47 +02:00
2014-04-22 12:00:20 +02:00