WSL2-Linux-Kernel/drivers/tty/hvc
Dan Carpenter bdb595b4a9 tty: hvc_xen: NULL dereference on allocation failure
If kzalloc() returns a NULL here, we pass a NULL to
xencons_disconnect_backend() which will cause an Oops.

Also I removed the __GFP_ZERO while I was at it since kzalloc() implies
__GFP_ZERO.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-05-15 08:48:45 -07:00
..
Kconfig Features: 2012-03-22 20:16:14 -07:00
Makefile tty: powerpc: remove hvc_iseries 2012-03-09 10:35:17 +11:00
hvc_beat.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_bfin_jtag.c hvc: add Blackfin JTAG console support 2011-02-17 11:12:40 -08:00
hvc_console.c TTY: hvc, fix TTY refcounting 2012-04-13 10:54:43 -07:00
hvc_console.h TTY: HVC, use count from tty_port 2012-04-09 11:28:18 -07:00
hvc_dcc.c tty: hvc_dcc: Fix duplicate character inputs 2011-11-15 12:02:13 -08:00
hvc_irq.c TTY: irq: Remove IRQF_DISABLED 2011-09-22 16:08:57 -07:00
hvc_iucv.c Fix common misspellings 2011-03-31 11:26:23 -03:00
hvc_opal.c powerpc: fix building hvc_opal.c 2011-11-06 22:21:18 -08:00
hvc_rtas.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_tile.c tty: move hvc drivers to drivers/tty/hvc/ 2011-01-13 12:03:00 -08:00
hvc_udbg.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2012-03-21 18:55:10 -07:00
hvc_vio.c powerpc+sparc/vio: Modernize driver registration 2012-03-28 11:33:24 +11:00
hvc_xen.c tty: hvc_xen: NULL dereference on allocation failure 2012-05-15 08:48:45 -07:00
hvcs.c TTY: hvcs, use tty from tty_port 2012-04-09 11:28:21 -07:00
hvsi.c TTY: hvsi, use tty from tty_port 2012-04-09 11:28:26 -07:00
hvsi_lib.c TTY: HVC, use tty from tty_port 2012-04-09 11:28:18 -07:00