dahdi-linux/drivers/dahdi
Shaun Ruffell 2175ea1293 wctdm24xxp, wcte12xp: Close a few potential resource assignment leaks.
There were some routes through the failure paths in __voicebus_init() where a
registered memory region was not subsequently released.  This change closes
those paths.

The result would be on subsequent loads of the driver after hitting the
failure condition you would see "IO Registers are in use by another module."
in dmesg.

request_mem_region/release_mem_region should most likely be converted to
devm_request_region and devm_release_region introduced in 2.6.20
(commit 9ac7849e35f705830f7b016ff272b0ff1f7ff759) which was introduced for
reasons just such as this.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9503 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-12-02 22:42:56 +00:00
..
datamods wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
firmware dahdi: '-o' -> '--no-same-owner' in drivers/dahdi/firmware/Makefile 2010-10-20 12:22:42 +00:00
hpec Remove mutex emulation 2010-11-04 16:40:29 +00:00
oct612x wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
voicebus wctdm24xxp, wcte12xp: Close a few potential resource assignment leaks. 2010-12-02 22:42:56 +00:00
vpmadt032_loader wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
wcb4xxp wcb4xxp: Support beroNet BN4S0e PCI Express card 2010-10-20 17:52:47 +00:00
wct4xxp Minor logging text change 2010-10-25 20:01:54 +00:00
wctc4xxp Remove mutex emulation 2010-11-04 16:40:29 +00:00
wctdm24xxp wctdm24xxp: Replace interruptible_sleep_on() with msleep when delaying. 2010-12-01 16:59:20 +00:00
wcte12xp wctdm24xxp, wcte12xp: Remove unused 'whichframe' parameter. 2010-10-20 12:23:26 +00:00
xpp Remove mutex emulation 2010-11-04 16:40:29 +00:00
adt_lec.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
adt_lec.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
arith.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
biquad.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_dummy.c dahdi_dummy: #include <linux/slab.h> for kzalloc and friends. 2010-09-07 13:47:24 +00:00
dahdi_dynamic_eth.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi_dynamic_ethmf.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi_dynamic_loc.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi_dynamic.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi_echocan_jpah.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_echocan_kb1.c dahdi: Fix 'void *' pointer arithmetic warnings. 2010-09-29 21:32:55 +00:00
dahdi_echocan_mg2.c dahdi: Fix 'void *' pointer arithmetic warnings. 2010-09-29 21:32:55 +00:00
dahdi_echocan_oslec.c dahdi_echocan_oslec: Call olsec_hpf_tx if CONFIG_DAHDI_PROCESS_ECHOCAN_TX is defined. 2010-10-20 12:23:11 +00:00
dahdi_echocan_sec2.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_echocan_sec.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_transcode.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi-base.c dahdi: A little cleanup in the dahdi_ioctl_iomux function. 2010-11-25 00:07:10 +00:00
digits.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
ecdis.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
fir.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
fxo_modes.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Kbuild wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Kconfig wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Makefile wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
makefw.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
pciradio.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
pciradio.rbt wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
proslic.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
tor2-hw.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
tor2.c dahdi: Atomically set/test if channel has associated network device. 2010-10-20 12:23:16 +00:00
tormenta2.rbt wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
wcfxo.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
wct1xxp.c dahdi: Atomically set/test if channel has associated network device. 2010-10-20 12:23:16 +00:00
wctdm.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
wcte11xp.c dahdi: Atomically set/test if channel has associated network device. 2010-10-20 12:23:16 +00:00