From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYrgE-0005nh-8i for qemu-devel@nongnu.org; Tue, 30 Sep 2014 03:17:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYrg5-0006Fu-0Z for qemu-devel@nongnu.org; Tue, 30 Sep 2014 03:17:02 -0400 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:38539 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYrg4-0006Er-Ln for qemu-devel@nongnu.org; Tue, 30 Sep 2014 03:16:52 -0400 From: Peter Lieven Date: Tue, 30 Sep 2014 09:09:10 +0200 Message-Id: <1412060952-19407-1-git-send-email-pl@kamp.de> Subject: [Qemu-devel] [PATCHv2 0/2] introduce bitmap_try_new List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com, Peter Lieven , ronniesahlberg@gmail.com, pbonzini@redhat.com this adds a new helper to handle errors when allocation a bitmap and also introduces its first user. v1->v2: - derive bitmap_new from bitmap_try_new (Eric) - fail if allocation fails in iscsi_open (Paolo) Peter Lieven (2): util: introduce bitmap_try_new block/iscsi: handle failure on malloc of the allocationmap block/iscsi.c | 19 ++++++++++++------- include/qemu/bitmap.h | 13 +++++++++++-- 2 files changed, 23 insertions(+), 9 deletions(-) -- 1.7.9.5