summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-11-02 19:55:45 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2008-11-02 19:55:45 +0100
commite689597fe890cf22e23195037aa668c39b25ae4b (patch)
tree62ba5dde9cbd3211aa1da104f9e1351812a11706 /drivers/pcmcia
parent2509698687e2d8265a19d800f7daa6f87790a529 (diff)
downloadlinux-e689597fe890cf22e23195037aa668c39b25ae4b.tar.gz
linux-e689597fe890cf22e23195037aa668c39b25ae4b.tar.bz2
linux-e689597fe890cf22e23195037aa668c39b25ae4b.zip
pcmcia: add braces in error path
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/cistpl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pcmcia/cistpl.c b/drivers/pcmcia/cistpl.c
index dcce9f5d8465..4a110b7b2673 100644
--- a/drivers/pcmcia/cistpl.c
+++ b/drivers/pcmcia/cistpl.c
@@ -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;