Re: [PATCH v2 04/15] nvdimm: support nvdimm label

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 20/05/2016 10:20, Xiao Guangrong wrote:
> +    if (size <= nvdimm->label_size) {
> +        HostMemoryBackend *hostmem = dimm->hostmem;
> +        char *path = object_get_canonical_path_component(OBJECT(hostmem));
> +
> +        error_setg(errp, "the size of memdev %s (0x%" PRIx64 ") is too"
> +                   "small to contain nvdimm label (0x%" PRIx64 ")",
> +                   path, memory_region_size(mr), nvdimm->label_size);

Coverity reports here that path is leaked.

Thanks,

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux