[libvirt] [PATCH] util: Avoid calling closedir(NULL)

Pavel Hrdina phrdina at redhat.com
Mon Nov 24 16:55:27 UTC 2014


On 11/24/2014 05:42 PM, Jiri Denemark wrote:
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>   src/util/virutil.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/util/virutil.c b/src/util/virutil.c
> index 9c40317..3037293 100644
> --- a/src/util/virutil.c
> +++ b/src/util/virutil.c
> @@ -1780,7 +1780,7 @@ virFindSCSIHostByPCI(const char *sysfs_prefix,
>           virReportSystemError(errno,
>                                _("Failed to opendir path '%s'"),
>                                prefix);
> -        goto cleanup;
> +        return NULL;
>       }
>
>       while (virDirRead(dir, &entry, prefix) > 0) {
>

ACK,

Pavel




More information about the libvir-list mailing list