Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

pcmcia: properly close previous dev_printk if kzalloc fails in do_io_probe

parent 01373046
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;