qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 5/5] iscsi: Don't use error_is_set() to suppress


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH 5/5] iscsi: Don't use error_is_set() to suppress additional errors
Date: Thu, 24 Apr 2014 12:22:50 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 24.04.2014 um 11:15 hat Markus Armbruster geschrieben:
> 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 <address@hidden>

Reviewed-by: Kevin Wolf <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]