Commit 30c21ff9 authored by Maeda Naoaki's avatar Maeda Naoaki Committed by David Mosberger

[PATCH] ia64: fix possible memory leak in PCI alloc_resource()

parent 7d202bd0
......@@ -153,8 +153,10 @@ alloc_resource (char *name, struct resource *root, unsigned long start, unsigned
res->end = end;
res->flags = flags;
if (insert_resource(root, res))
if (insert_resource(root, res)) {
kfree(res);
return -EBUSY;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment