From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8UEM-0005Fj-Jc for qemu-devel@nongnu.org; Sat, 19 Jul 2014 08:59:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8UEG-0000sg-G3 for qemu-devel@nongnu.org; Sat, 19 Jul 2014 08:59:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8UEG-0000sb-81 for qemu-devel@nongnu.org; Sat, 19 Jul 2014 08:59:08 -0400 Message-ID: <53CA6BB2.30909@redhat.com> Date: Sat, 19 Jul 2014 14:59:30 +0200 From: Max Reitz MIME-Version: 1.0 References: <53284180c7bd615c8283e7f7e05ac69354a7b5b4.1405715876.git.jcody@redhat.com> In-Reply-To: <53284180c7bd615c8283e7f7e05ac69354a7b5b4.1405715876.git.jcody@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/4] block: allow bdrv_unref() to be passed NULL pointers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody , qemu-devel@nongnu.org Cc: kwolf@redhat.com, sw@weilnetz.de, stefanha@redhat.com On 18.07.2014 22:53, Jeff Cody wrote: > If bdrv_unref() is passed a NULL BDS pointer, it is safe to > exit with no operation. This will allow cleanup code to blindly > call bdrv_unref() on a BDS that has been initialized to NULL. > > Signed-off-by: Jeff Cody > --- > block.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Max Reitz