From: Frans Pop Date: Sat, 17 Oct 2009 11:35:30 +0000 (+0200) Subject: pcmcia: properly close previous dev_printk if kzalloc fails in do_io_probe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30514ccfc5651b0b1eb27d5ac1cb580b152cd85f;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git pcmcia: properly close previous dev_printk if kzalloc fails in do_io_probe Signed-off-by: Frans Pop Signed-off-by: Dominik Brodowski --- diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c index 9ca22c7aafb2..909b1968098b 100644 --- a/drivers/pcmcia/rsrc_nonstatic.c +++ b/drivers/pcmcia/rsrc_nonstatic.c @@ -206,6 +206,7 @@ static void do_io_probe(struct pcmcia_socket *s, unsigned int base, /* First, what does a floating port look like? */ b = kzalloc(256, GFP_KERNEL); if (!b) { + printk("\n"); dev_printk(KERN_ERR, &s->dev, "do_io_probe: unable to kmalloc 256 bytes"); return;