Commit 30514ccf authored by Frans Pop's avatar Frans Pop Committed by Dominik Brodowski

pcmcia: properly close previous dev_printk if kzalloc fails in do_io_probe

Signed-off-by: default avatarFrans Pop <elendil@planet.nl>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 01373046
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment