Commit 07b39b49 authored by Andres Salomon's avatar Andres Salomon Committed by Linus Torvalds

tridentfb: fix memory leaks in removal path

We were leaking the cmap memory.
Signed-off-by: default avatarAndres Salomon <dilinger@debian.org>
Acked-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 895d7227
...@@ -1563,6 +1563,7 @@ static void __devexit trident_pci_remove(struct pci_dev *dev) ...@@ -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); release_mem_region(tridentfb_fix.mmio_start, tridentfb_fix.mmio_len);
pci_set_drvdata(dev, NULL); pci_set_drvdata(dev, NULL);
kfree(info->pixmap.addr); kfree(info->pixmap.addr);
fb_dealloc_cmap(&info->cmap);
framebuffer_release(info); framebuffer_release(info);
} }
......
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