]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/MSI: Fix leak of msi_attrs
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 17:47:35 +0000 (10:47 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Feb 2014 17:47:35 +0000 (10:47 -0700)
commitdf6bd43a35fa53a3eda4fadfa3caac60cb5b5e87
treebbe7b0a48a9d0be60d104792da3b594ccb80ce15
parentcf03247441f59b46a79419298b7b3c824a3f9530
PCI/MSI: Fix leak of msi_attrs

Coverity reported that I forgot to clean up some allocated memory on the
error path in populate_msi_sysfs(), so this patch fixes that.

Thanks to Dave Jones for pointing out where the error was, I obviously
can't read code this morning...

Found by Coverity (CID 1163317).

Fixes: 8407b4418990 ("PCI/MSI: Export MSI mode using attributes, not kobjects")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Dave Jones <davej@redhat.com>
drivers/pci/msi.c