Commit feb50384 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/svec_drv: fix leakage on unmap

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent fd278ee3
......@@ -105,6 +105,8 @@ int unmap_window(struct svec_dev *svec, enum svec_map_win win)
return -EINVAL;
}
printk(KERN_ERR PFX "window %d unmaped\n", (int)win);
kfree(svec->map[win]);
svec->map[win] = NULL;
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