pcmcia: properly close previous dev_printk if kzalloc fails in do_io_probe
Frans Pop [Sat, 17 Oct 2009 11:35:30 +0000 (13:35 +0200)]
Signed-off-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

drivers/pcmcia/rsrc_nonstatic.c

index 9ca22c7..909b196 100644 (file)
@@ -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;