aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorKeita Suzuki <[email protected]>2020-09-08 12:17:41 +0000
committerKalle Valo <[email protected]>2020-09-09 10:32:29 +0300
commitf4443293d741d1776b86ed1dd8c4e4285d0775fc (patch)
treea4bb212e16785adefd363ee8397e5024e8dd7311 /tools/perf/scripts/python/syscall-counts.py
parenteb2c6ca2db8c9cf112f0b604c1edfe21b5725f17 (diff)
brcmsmac: fix memory leak in wlc_phy_attach_lcnphy
When wlc_phy_txpwr_srom_read_lcnphy fails in wlc_phy_attach_lcnphy, the allocated pi->u.pi_lcnphy is leaked, since struct brcms_phy will be freed in the caller function. Fix this by calling wlc_phy_detach_lcnphy in the error handler of wlc_phy_txpwr_srom_read_lcnphy before returning. Signed-off-by: Keita Suzuki <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions