Skip to content

Commit

Permalink
pcmcia: add braces in error path
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Dominik Brodowski committed Nov 2, 2008
1 parent 2509698 commit e689597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pcmcia/cistpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,11 @@ int verify_cis_cache(struct pcmcia_socket *s)
char *buf;

buf = kmalloc(256, GFP_KERNEL);
if (buf == NULL)
if (buf == NULL) {
dev_printk(KERN_WARNING, &s->dev,
"no memory for verifying CIS\n");
return -ENOMEM;
}
list_for_each_entry(cis, &s->cis_cache, node) {
int len = cis->len;

Expand Down

0 comments on commit e689597

Please sign in to comment.