提交 e689597f 编写于 作者: D Dominik Brodowski

pcmcia: add braces in error path

Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
上级 25096986
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册