aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorruanjinjie <[email protected]>2022-11-09 09:28:52 +0000
committerJon Mason <[email protected]>2023-07-08 15:02:36 +0000
commit956578e3d397e00d6254dc7b5194d28587f98518 (patch)
treeaf614a663691d69e9fffbe47960f000aed0844cc /tools/perf/scripts/python/net_dropmonitor.py
parentNTB: ntb_tool: Add check for devm_kcalloc (diff)
downloadkernel-956578e3d397e00d6254dc7b5194d28587f98518.tar.gz
kernel-956578e3d397e00d6254dc7b5194d28587f98518.zip
NTB: EPF: fix possible memory leak in pci_vntb_probe()
As ntb_register_device() don't handle error of device_register(), if ntb_register_device() returns error in pci_vntb_probe(), name of kobject which is allocated in dev_set_name() called in device_add() is leaked. As comment of device_add() says, it should call put_device() to drop the reference count that was set in device_initialize() when it fails, so the name can be freed in kobject_cleanup(). Signed-off-by: ruanjinjie <[email protected]> Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions