From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPfeb-0003kF-8G for qemu-devel@nongnu.org; Mon, 17 Mar 2014 18:05:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPfeV-00058I-8s for qemu-devel@nongnu.org; Mon, 17 Mar 2014 18:05:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPfeV-00058E-1H for qemu-devel@nongnu.org; Mon, 17 Mar 2014 18:04:59 -0400 From: Max Reitz Date: Mon, 17 Mar 2014 23:04:50 +0100 Message-Id: <1395093892-29271-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] qcow2: Fix return path of realloc_refcount_block() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Laszlo Ersek , =?UTF-8?q?Beno=C3=AEt=20Canet?= , Stefan Hajnoczi , Max Reitz This series fixes the fail path of the static function realloc_refcount_block() in block/qcow2-refcount.c which is used for repairing corrupted image files. While doing so, the whole return path is cleaned up and the comment describing the return value in case of success is fixed. Max Reitz (2): qcow2: Correct comment for realloc_refcount_block() qcow2: Fix fail path in realloc_refcount_block() block/qcow2-refcount.c | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) -- 1.9.0