forked from luck/tmp_suning_uos_patched
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:
parent
895d72279d
commit
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user