forked from Minki/linux
pm2fb: free cmap memory on module remove
Release cmap memory allocated in the probe function. Signed-off-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
1d96469a34
commit
27aa069a88
@ -1746,6 +1746,7 @@ static void __devexit pm2fb_remove(struct pci_dev *pdev)
|
||||
release_mem_region(fix->mmio_start, fix->mmio_len);
|
||||
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
fb_dealloc_cmap(&info->cmap);
|
||||
kfree(info->pixmap.addr);
|
||||
kfree(info);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user