tridentfb: fix memory leaks in removal path
We were leaking the cmap memory. Signed-off-by: Andres Salomon <dilinger@debian.org> Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Родитель
895d72279d
Коммит
07b39b49b4
|
@ -1563,6 +1563,7 @@ static void __devexit trident_pci_remove(struct pci_dev *dev)
|
|||
release_mem_region(tridentfb_fix.mmio_start, tridentfb_fix.mmio_len);
|
||||
pci_set_drvdata(dev, NULL);
|
||||
kfree(info->pixmap.addr);
|
||||
fb_dealloc_cmap(&info->cmap);
|
||||
framebuffer_release(info);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче