summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/host/pci-layerscape-ep-debugfs.c1
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;
}