summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2017-08-08 20:02:51 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-10 19:55:35 -0400
commitcf99dc30bcc56c33243b5bbfef9d8ea943dd2e1c (patch)
treeae11586a011e821c72fbc85a8f4ff59877aafbd0 /tools/perf/scripts/python/syscall-counts.py
parentbc1371c181b503fe925ae292cd96618f305790cd (diff)
downloadlinux-cf99dc30bcc56c33243b5bbfef9d8ea943dd2e1c.tar.gz
linux-cf99dc30bcc56c33243b5bbfef9d8ea943dd2e1c.zip
scsi: mvsas: replace kfree with scsi_host_put
The return value of scsi_host_alloc() should be released by scsi_host_put(). However, in function mvs_pci_init(), kfree() is used. This patch replaces kfree() with scsi_host_put() to avoid possible memory leaks. Signed-off-by: Pan Bian <bianpan2016@163.com> Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions