diff options
| author | Alexei Starovoitov <[email protected]> | 2014-06-04 22:49:50 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2014-06-11 17:13:19 +0000 |
| commit | b701c0b1fe819a2083fc6ec5332e0e4492b9516d (patch) | |
| tree | 1c42a0508a55e736faa6a7e04731a674caa02099 /net/unix/af_unix.c | |
| parent | Merge branches 'pci/host-designware', 'pci/host-imx6', 'pci/host-mvebu' and '... (diff) | |
| download | kernel-b701c0b1fe819a2083fc6ec5332e0e4492b9516d.tar.gz kernel-b701c0b1fe819a2083fc6ec5332e0e4492b9516d.zip | |
PCI/MSI: Fix memory leak in free_msi_irqs()
free_msi_irqs() is leaking memory, since list_for_each_entry(entry,
&dev->msi_list, list) {...} is never executed, because dev->msi_list is
made empty by the loop just above this one.
Fix it by relying on zero termination of attribute array like
populate_msi_sysfs() does.
Fixes: 1c51b50c2995 ("PCI/MSI: Export MSI mode using attributes, not kobjects")
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Neil Horman <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
CC: [email protected] # v3.14+
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
