summaryrefslogtreecommitdiff
path: root/drivers/staging/Kconfig
diff options
context:
space:
mode:
authorOmar Ramirez Luna <omar.ramirez@ti.com>2012-01-31 01:20:17 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-14 23:38:51 (GMT)
commit2573897816e604952ee9f7dbe798094d80c1e31d (patch)
tree93c3eb36a923cb1d46505004e8d9b239299a46b7 /drivers/staging/Kconfig
parent00da8eddf9eb8d432533c3a83da3a6470a45dfc4 (diff)
downloadlinux-fsl-qoriq-2573897816e604952ee9f7dbe798094d80c1e31d.tar.xz
staging: tidspbridge: fix bridge_open memory leaks
There are two members of pr_ctxt allocated during bridge_open that are never freed resulting in memory leaks, these are stream_id and node_id, they are now freed on release of the handle (bridge_release) right before freeing pr_ctxt. Error path for bridge_open was also fixed since the same variables could result in memory leaking due to missing handling of failure scenarios. While at it, the indentation changes were introduced to avoid interleaved goto statements inside big if blocks. Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/Kconfig')
0 files changed, 0 insertions, 0 deletions