Commit 42483262 authored by Felipe Damasio's avatar Felipe Damasio Committed by James Bottomley

[PATCH] Memory leak in NCR_Q720 found by checker

Patch frees a struct NCR_Q720_private before 
returning.
parent c16e5061
......@@ -179,6 +179,7 @@ NCR_Q720_probe(struct device *dev)
i = inb(io_base) | (inb(io_base+1)<<8);
if(i != NCR_Q720_MCA_ID) {
printk(KERN_ERR "NCR_Q720, adapter failed to I/O map registers correctly at 0x%x(0x%x)\n", io_base, i);
kfree(p);
return -ENODEV;
}
......
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