diff options
author | Liu Gang <Gang.Liu@nxp.com> | 2017-01-06 06:49:48 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:40 (GMT) |
commit | 648ff0ee8a18f496efe366db46d87125c179c36e (patch) | |
tree | b08ebcaf8788c6a404699cca0c371ff1fc699f5f /drivers/pci/host/pci-layerscape-ep-debugfs.c | |
parent | a37b267cd02de858f1edfdf5fc6e665b68e58c47 (diff) | |
download | linux-648ff0ee8a18f496efe366db46d87125c179c36e.tar.xz |
pcie-ep: Fix the memory leak issue
Add the memory free step to avoid the memory leak issue.
Signed-off-by: Liu Gang <Gang.Liu@nxp.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Diffstat (limited to 'drivers/pci/host/pci-layerscape-ep-debugfs.c')
-rw-r--r-- | drivers/pci/host/pci-layerscape-ep-debugfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-layerscape-ep-debugfs.c b/drivers/pci/host/pci-layerscape-ep-debugfs.c index f5f01cd..daf6c6d 100644 --- a/drivers/pci/host/pci-layerscape-ep-debugfs.c +++ b/drivers/pci/host/pci-layerscape-ep-debugfs.c @@ -679,6 +679,7 @@ static ssize_t ls_pcie_ep_dbg_dump_read(struct file *filp, if (!test) { dev_info(&ep->dev, " there is NO test\n"); + kfree(buf); return 0; } |