From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0au2-0004rg-BS for qemu-devel@nongnu.org; Fri, 27 Jun 2014 14:29:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0atw-0001MN-7x for qemu-devel@nongnu.org; Fri, 27 Jun 2014 14:29:38 -0400 Date: Fri, 27 Jun 2014 19:21:57 +0200 From: Kevin Wolf Message-ID: <20140627172157.GL5223@noname.redhat.com> References: <53A84797.9040304@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53A84797.9040304@gmail.com> Subject: Re: [Qemu-devel] [PATCH trivial v2] block.c: Add return value for bdrv_append_temp_snapshot() to avoid incorrect failure processing issue List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chen Gang Cc: famz@redhat.com, qemu-trivial@nongnu.org, Michael Tokarev , qemu-devel@nongnu.org, mreitz@redhat.com, stefanha@redhat.com Am 23.06.2014 um 17:28 hat Chen Gang geschrieben: > When failure occurs, 'ret' need be set, or may return 0 to indicate success. > And error_propagate() also need be called only one time within a function. > > It is abnormal to prevent bdrv_append_temp_snapshot() return value but still > set errp when error occurs -- although it contents return value internally. > > So let bdrv_append_temp_snapshot() internal return value outside, and let > all things normal, then fix the issue too. > > > Signed-off-by: Chen Gang Thanks, applied to the block branch. Kevin