Re: [PATCH v2] xen: fix memory leak in __xen_pcibk_add_pci_dev()

2014-04-03 Thread David Vrabel
On 01/04/14 11:15, Daeseok Youn wrote: > > It need to free dev_entry when it failed to assign to a new > slot on the virtual PCI bus. > > smatch says: > drivers/xen/xen-pciback/vpci.c:142 __xen_pcibk_add_pci_dev() warn: > possible memory leak of 'dev_entry' Applied to devel/for-linus-3.15. Tha

Re: [PATCH v2] xen: fix memory leak in __xen_pcibk_add_pci_dev()

2014-04-01 Thread Jan Beulich
>>> On 01.04.14 at 12:15, wrote: > It need to free dev_entry when it failed to assign to a new > slot on the virtual PCI bus. > > smatch says: > drivers/xen/xen-pciback/vpci.c:142 __xen_pcibk_add_pci_dev() warn: > possible memory leak of 'dev_entry' > > Signed-off-by: Daeseok Youn As before

[PATCH v2] xen: fix memory leak in __xen_pcibk_add_pci_dev()

2014-04-01 Thread Daeseok Youn
It need to free dev_entry when it failed to assign to a new slot on the virtual PCI bus. smatch says: drivers/xen/xen-pciback/vpci.c:142 __xen_pcibk_add_pci_dev() warn: possible memory leak of 'dev_entry' Signed-off-by: Daeseok Youn --- v2: The kfree() invocation is moved outside the locked re