[PATCH 2/6] pcmcia: properly close previous dev_printk if kzalloc fails in do_io_probe

Dominik Brodowski linux at dominikbrodowski.net
Sat Oct 24 04:24:52 EDT 2009


From: Frans Pop <elendil at planet.nl>

Signed-off-by: Frans Pop <elendil at planet.nl>
Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>
---
 drivers/pcmcia/rsrc_nonstatic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c
index 9ca22c7..909b196 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;
-- 
1.6.0.4




More information about the linux-pcmcia mailing list