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

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

 



On Tue, Jun 28, 2016 at 09:48:10AM +0200, Paolo Bonzini wrote:
> 
> 
> 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.

I will send a patch.

Stefan

Attachment: signature.asc
Description: PGP signature


[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