linux/drivers/staging/tidspbridge
Omar Ramirez Luna 2573897816 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>
2012-02-14 15:38:51 -08:00
..
core Merge tag 'staging-3.3-rc3' into staging-next 2012-02-10 10:58:25 -08:00
Documentation staging: ti dspbridge: remove contributor leftovers 2010-07-08 13:31:45 -07:00
dynload Revert wrong fixes for common misspellings 2011-04-26 23:31:11 -07:00
gen staging: tidspbridge: remove dbc.h 2012-02-09 09:38:19 -08:00
hw staging: tidspbridge: MMU2 registers are limited to 32-bit data access 2011-10-19 13:42:49 -07:00
include/dspbridge staging: tidspbridge: remove CONFIG_TIDSPBRIDGE_DEBUG 2012-02-09 09:38:19 -08:00
pmgr staging: tidspbridge: remove dbc.h 2012-02-09 09:38:19 -08:00
rmgr staging: tidspbridge: fix bridge_open memory leaks 2012-02-14 15:38:51 -08:00
Kconfig staging: tidspbridge: remove CONFIG_TIDSPBRIDGE_DEBUG 2012-02-09 09:38:19 -08:00
Makefile staging: tidspbridge: Rename module from bridgedriver to tidspbridge 2012-02-09 09:37:11 -08:00
TODO staging: tidspbridge: remove custom linked list 2011-02-04 20:11:41 -06:00