Skip to content

Commit

Permalink
pcmcia: properly close previous dev_printk if kzalloc fails in do_io_…
Browse files Browse the repository at this point in the history
…probe

Signed-off-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Frans Pop authored and Dominik Brodowski committed Oct 17, 2009
1 parent 0137304 commit 30514cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pcmcia/rsrc_nonstatic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 30514cc

Please sign in to comment.