diff options
author | Omar Ramirez Luna <omar.ramirez@ti.com> | 2012-01-31 01:20:17 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-08 22:14:14 (GMT) |
commit | 5a63177a6967698df58c6c93d0db3a3586e0b028 (patch) | |
tree | 7870b43e0e1b5af040b6487fb85ae451768f9728 /drivers/xen | |
parent | e5d7965f88a3755b2d0c54768a17032ab3a72819 (diff) | |
download | linux-fsl-qoriq-5a63177a6967698df58c6c93d0db3a3586e0b028.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/xen')
0 files changed, 0 insertions, 0 deletions