|
From: | Max Reitz |
Subject: | Re: [Qemu-devel] [PATCH 1/4] block: allow bdrv_unref() to be passed NULL pointers |
Date: | Sat, 19 Jul 2014 14:59:30 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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 <address@hidden> --- block.c | 3 +++ 1 file changed, 3 insertions(+)
Reviewed-by: Max Reitz <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |