]> git.baikalelectronics.ru Git - kernel.git/commit
xen: fix memory leak in __xen_pcibk_add_pci_dev()
authorDaeseok Youn <daeseok.youn@gmail.com>
Tue, 1 Apr 2014 10:15:59 +0000 (19:15 +0900)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 15 Apr 2014 16:32:30 +0000 (17:32 +0100)
commitfdff7c85eb5e15ea589bd48c2b47ecb72813c2c3
treee9f0960879b3f2dca738eb363be06b0d47e7b3c1
parent68a26683fc0fcd8847284a24e849ef7f42e78936
xen: fix memory leak in __xen_pcibk_add_pci_dev()

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 <daeseok.youn@gmail.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xen-pciback/vpci.c