linux-stable/drivers/video/via
Harald Welte 109771a68b viafb: Fix various resource leaks during module_init()
The current code executed from module_init() in viafb does not have
proper error checking and [partial] resoure release paths in case
an error happens half way through driver initialization.

This patch adresses the most obvious of those issues, such as a
leftover i2c bus if module_init (and thus module load) fails.

[jc: fixed merge conflicts]
[jc: also restored -ENOMEM return on ioremap() fail]

Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: ScottFang@viatech.com.cn
Cc: JosephChan@via.com.tw
Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
2010-04-20 14:23:18 -06:00
..
accel.c viafb: fix acceleration for some chips 2010-01-16 12:15:37 -08:00
accel.h viafb: hardware acceleration initialization cleanup 2009-09-23 07:39:53 -07:00
chip.h viafb: some dvi cleanup 2010-03-12 15:52:33 -08:00
debug.h
dvi.c drivers/video/via: fix continuation line formats 2010-03-12 15:52:34 -08:00
dvi.h viafb: some dvi cleanup 2010-03-12 15:52:33 -08:00
global.c viafb: make some variables a bit less global 2010-03-12 15:52:33 -08:00
global.h viafb: make some variables a bit less global 2010-03-12 15:52:33 -08:00
hw.c viafb: support color depth 15 and 30 2010-03-12 15:52:34 -08:00
hw.h viafb: rework color setting 2010-03-12 15:52:34 -08:00
ioctl.c viafb: iface.c, iface.h, ioctl.c, ioctl.h 2008-10-16 11:21:41 -07:00
ioctl.h viafb: remove unused video device stuff 2009-09-23 07:39:52 -07:00
lcd.c drivers/video/via: fix continuation line formats 2010-03-12 15:52:34 -08:00
lcd.h viafb: lcd.c, lcd.h, lcdtbl.h 2008-10-16 11:21:41 -07:00
lcdtbl.h viafb: lcd.c, lcd.h, lcdtbl.h 2008-10-16 11:21:41 -07:00
Makefile viafb: yet another dead code removal 2010-03-12 15:52:33 -08:00
share.h viafb: remove dead code due to IGA1_IGA2 2010-03-12 15:52:33 -08:00
tbl1636.c viafb: tbl1636.c, tbl1636.h, tblDPASetting.c, tblDPASetting.h 2008-10-16 11:21:41 -07:00
tbl1636.h viafb: tbl1636.c, tbl1636.h, tblDPASetting.c, tblDPASetting.h 2008-10-16 11:21:41 -07:00
tblDPASetting.c viafb: tbl1636.c, tbl1636.h, tblDPASetting.c, tblDPASetting.h 2008-10-16 11:21:41 -07:00
tblDPASetting.h viafb: tbl1636.c, tbl1636.h, tblDPASetting.c, tblDPASetting.h 2008-10-16 11:21:41 -07:00
via_i2c.c viafb: improve viafb_par 2009-09-23 07:39:52 -07:00
via_i2c.h viafb: via_i2c.c, via_i2c.h, viamode.c, viamode.h 2008-10-16 11:21:42 -07:00
via_utility.c viafb: remove dead code 2010-03-12 15:52:33 -08:00
via_utility.h viafb: remove dead code 2010-03-12 15:52:33 -08:00
viafbdev.c viafb: Fix various resource leaks during module_init() 2010-04-20 14:23:18 -06:00
viafbdev.h viafb: make some variables a bit less global 2010-03-12 15:52:33 -08:00
viamode.c viafb: split global index up 2010-03-12 15:52:33 -08:00
viamode.h viafb: split global index up 2010-03-12 15:52:33 -08:00
vt1636.c viafb: improve viafb_par 2009-09-23 07:39:52 -07:00
vt1636.h viafb: via_utility.c, via_utility.h, vt1636.c, vt1636.h 2008-10-16 11:21:42 -07:00