Jiri Slaby
22e132ff26
Char: virtio_console, fix memory leak
...
Stanse found that in init_vqs, memory is leaked under certain
circumstanses (the fail path order is incorrect). Fix that by checking
allocations in one turn and free all of them at once if some fails
(some may be NULL, but this is OK).
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Amit Shah <amit.shah@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2010-11-24 15:21:12 +10:30
..
agp
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
hw_random
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
ip2
drivers/char/ip2/Makefile: replace the use of <module>-objs with <module>-y
2010-10-27 18:03:14 -07:00
ipmi
drivers/char/ipmi/Makefile: replace the use of <module>-objs with <module>-y
2010-10-27 18:03:14 -07:00
mwave
drivers/char/mwave/Makefile: clean up
2010-10-27 18:03:15 -07:00
pcmcia
pcmcia: fix warning in synclink driver
2010-11-10 14:30:41 +01:00
rio
drivers/char/rio/Makefile: replace the use of <module>-objs with <module>-y
2010-10-27 18:03:15 -07:00
tpm
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2010-10-24 13:41:39 -07:00
xilinx_hwicap
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
amiserial.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
apm-emulation.c
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2010-10-24 13:41:39 -07:00
applicom.c
drivers/char/applicom.c: fix information leak to userland
2010-10-27 18:03:14 -07:00
applicom.h
bfin-otp.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
bfin_jtag_comm.c
briq_panel.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
bsr.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
cd1865.h
cs5535_gpio.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
cyclades.c
tty: icount changeover for other main devices
2010-10-22 10:20:05 -07:00
digi1.h
digiFep1.h
digiPCI.h
ds1302.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
ds1620.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
dsp56k.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
dtlk.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
efirtc.c
epca.c
epca: Kill the big kernel lock
2010-08-10 13:47:40 -07:00
epca.h
epcaconfig.h
generic_nvram.c
drivers: autoconvert trivial BKL users to private mutex
2010-10-05 15:01:04 +02:00
generic_serial.c
genrtc.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
hangcheck-timer.c
Input: sysrq - drop tty argument form handle_sysrq()
2010-08-21 00:34:45 -07:00
hpet.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
hvc_beat.c
hvc_console.c
drivers/char/hvc_console.c: remove unneeded __set_current_state(TASK_RUNNING)
2010-10-27 18:03:14 -07:00
hvc_console.h
hvc_irq.c
hvc_iseries.c
hvc_iucv.c
[S390] hvc_iucv: do not call iucv_unregister if iucv_register failed
2010-10-25 16:10:17 +02:00
hvc_rtas.c
hvc_tile.c
char: hvc: check for error case
2010-10-14 14:48:12 -04:00
hvc_udbg.c
hvc_vio.c
hvc_xen.c
Merge branch 'stable/xen-pcifront-0.8.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
2010-10-28 17:11:17 -07:00
hvcs.c
hvsi.c
Input: sysrq - drop tty argument form handle_sysrq()
2010-08-21 00:34:45 -07:00
i8k.c
Fix gcc 4.5.1 miscompiling drivers/char/i8k.c (again)
2010-11-15 13:27:06 -08:00
isicom.c
isicom: kill off the BKL
2010-08-10 13:47:40 -07:00
istallion.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
Kconfig
add ttyprintk driver
2010-10-22 10:20:02 -07:00
lp.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
Makefile
TTY: create drivers/tty/vt and move the vt code there
2010-11-05 08:16:52 -07:00
mbcs.c
drivers: autoconvert trivial BKL users to private mutex
2010-10-05 15:01:04 +02:00
mbcs.h
mem.c
vfs: introduce FMODE_UNSIGNED_OFFSET for allowing negative f_pos
2010-10-25 21:18:21 -04:00
misc.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
mmtimer.c
SGI Altix IA64 mmtimer: eliminate long interval timer holdoffs
2010-10-27 18:03:14 -07:00
moxa.c
moxa.h
mspec.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
mxser.c
drivers/char/mxser.c: fix compilation warning in mxser.c
2010-10-27 18:03:15 -07:00
mxser.h
nozomi.c
nozomi: Fix warning from the previous TIOCGCOUNT changes
2010-11-09 14:49:38 -08:00
nsc_gpio.c
nvram.c
drivers: autoconvert trivial BKL users to private mutex
2010-10-05 15:01:04 +02:00
nwbutton.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
nwbutton.h
nwflash.c
drivers: autoconvert trivial BKL users to private mutex
2010-10-05 15:01:04 +02:00
pc8736x_gpio.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
ppdev.c
drivers/char/ppdev.c: fix information leak to userland
2010-10-27 18:03:14 -07:00
ps3flash.c
ramoops.c
ramoops: use the platform data structure instead of module params
2010-10-27 18:03:18 -07:00
random.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
raw.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
riscom8.c
riscom8: kill use of lock_kernel
2010-08-10 13:47:40 -07:00
riscom8.h
riscom8_reg.h
rocket.c
drivers/char/rocket.c: release_region or error path
2010-10-27 18:03:14 -07:00
rocket.h
rocket_int.h
rtc.c
of/device: Replace struct of_device with struct platform_device
2010-08-06 09:25:50 -06:00
scc.h
scx200_gpio.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
snsc.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
snsc.h
snsc_event.c
sonypi.c
specialix.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
specialix_io8.h
stallion.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
sx.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
sx.h
sxboards.h
sxwindow.h
synclink.c
tty: icount changeover for other main devices
2010-10-22 10:20:05 -07:00
synclink_gt.c
drivers/char/synclink_gt.c: add extended sync feature
2010-10-27 18:03:14 -07:00
synclinkmp.c
tty: icount changeover for other main devices
2010-10-22 10:20:05 -07:00
tb0219.c
llseek: automatically add .llseek fop
2010-10-15 15:53:27 +02:00
tlclk.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
toshiba.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
ttyprintk.c
add ttyprintk driver
2010-10-22 10:20:02 -07:00
uv_mmtimer.c
BKL: remove extraneous #include <smp_lock.h>
2010-11-17 08:59:32 -08:00
viotape.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
2010-10-22 10:52:56 -07:00
virtio_console.c
Char: virtio_console, fix memory leak
2010-11-24 15:21:12 +10:30
vme_scc.c